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 enable/disable ARC in an xcode project?

If a project has already been created with ARC disabled, how do I enable it and vice versa?

objective-c xcode automatic-ref-counting
UIButton bottom shadow

I have a UIButton which is very similar to the standard iOS keyboard alphabet button. I am not sure how …

ios objective-c uibutton
How to set target and action for UIBarButtonItem at runtime

Tried this but only works for UIButton: [btn setTarget:self action:@selector(btnClicked:) forControlEvents:UIControlEventTouchUpInside];

ios objective-c iphone swift uibarbuttonitem
Is there a difference between YES/NO,TRUE/FALSE and true/false in objective-c?

Simple question really; is there a difference between these values (and is there a difference between BOOL and bool)? A …

objective-c boolean
Looping a video with AVFoundation AVPlayer?

Is there a relatively easy way of looping a video in AVFoundation? I've created my AVPlayer and AVPlayerLayer like so: …

ios objective-c swift avfoundation avplayer
how to add an action on UITextField return key?

I have a button and text textfield in my view. when i click on the textfield a keyboard appears and …

ios objective-c iphone swift uitextfield
Does the APNS device token ever change, once created?

Once created does the push notification device token ever change? Example when the app is updated? or in any other …

objective-c apple-push-notifications
Where to store global constants in an iOS application?

Most of the models in my iOS app query a web server. I would like to have a configuration file …

ios objective-c cocoa-touch constants global
How can I convert my device token (NSData) into an NSString?

I am implementing push notifications. I'd like to save my APNS Token as a String. - (void)application:(UIApplication *)application …

ios objective-c apple-push-notifications nsstring nsdata
Can I mix Swift with C++? Like the Objective-C .mm files

I just changed my .m files to .mm and use C++. Is there a way to do the same with …

c++ objective-c swift