Top "Objective-c" questions

This tag should be used only on questions that are about Objective-C features or depend on code in the language.

How to remove first 3 characters from NSString?

I have a string like this "A. rahul VyAs" and i want to remove "A. " and the space after the "…

objective-c nsstring
Is it possible to use Swift's Enum in Obj-C?

I'm trying to convert some of my Obj-C class to Swift. And some other Obj-C classes still using enum in …

objective-c enums swift
Center content of UIScrollView when smaller

I have a UIImageView inside a UIScrollView which I use for zooming and scrolling. If the image / content of the …

ios objective-c cocoa-touch uiscrollview uiimageview
Why do Objective-C files use the .m extension?

Since I started learning Objective-C and Cocoa, I've been wondering why they have chosen the extension .m for the implementation …

objective-c file-extension
Xcode 4 - clang error

I'm migrating from Xcode 3.5 to Xcode 4 and while I'm trying to Archiving my app for AdHoc distribution. I received this …

iphone ios objective-c xcode4.2
Verify receipt for in App purchase

I have been playing around with in app purchases for a few days, everything works fine up until the point …

php iphone objective-c in-app-purchase storekit
Duplicate Symbol Error in Objective-C build?

I got this error when I press build+debug: ld: duplicate symbol .objc_class_name_BlogTableItemCell in /Users/fabian/Development/…

ios objective-c duplicate-symbol
didReceiveRemoteNotification not called, iOS 10

In iOS 9.3, the didReceiveRemoteNotification method gets called on both of the following occasions. 1) When the push notification is received 2) When …

ios objective-c swift3 apple-push-notifications
NSString tokenize in Objective-C

What is the best way to tokenize/split a NSString in Objective-C?

objective-c cocoa tokenize
What's the meaning of Base SDK, iOS deployment target, Target, and Project in xcode

Say I set base SDK to 7, what does it mean? It could mean that the app would run on iOS 7. …

objective-c xcode4.5