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.

Objective-C : BOOL vs bool

I saw the "new type" BOOL (YES, NO). I read that this type is almost like a char. For testing …

c objective-c types boolean
Programmatically get height of navigation bar

I know that the presence of the more view controller (navigation bar) pushes down the UIView by its height. I …

ios objective-c swift uinavigationcontroller uinavigationbar
iOS 8 UITableView separator inset 0 not working

I have an app where the UITableView's separator inset is set to custom values - Right 0, Left 0. This works perfectly …

ios objective-c swift uitableview ios8
How does @synchronized lock/unlock in Objective-C?

Does @synchronized not use "lock" and "unlock" to achieve mutual exclusion? How does it do lock/unlock then? The output …

objective-c synchronization
How can I add NSAppTransportSecurity to my info.plist file?

https://developer.apple.com/videos/wwdc/2015/?id=711 @5:55 I can't seem to be able to add this to my info.plist. …

ios objective-c xcode ios9
iOS 7 status bar back to iOS 6 default style in iPhone app?

In iOS 7 the UIStatusBar has been designed in a way that it merges with the view like this: (GUI designed …

ios objective-c ios7 statusbar
What should my Objective-C singleton look like?

My singleton accessor method is usually some variant of: static MyClass *gInstance = NULL; + (MyClass *)instance { @synchronized(self) { if (gInstance == NULL) …

objective-c design-patterns singleton object-initializers
How to set back button text in Swift

How do you remove the back button text. Current back button: < Back Desired back button: < AnythingElse None of …

ios objective-c swift
How to convert NSNumber to NSString

So I have an NSArray "myArray" with NSNumbers and NSStrings. I need them in another UIView so i go like …

objective-c nsstring nsarray nsnumber
How do I get a background location update every n minutes in my iOS application?

I'm looking for a way to get a background location update every n minutes in my iOS application. I'm using …

ios objective-c core-location background-process