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.

Applications are expected to have a root view controller at the end of application launch

I get the following error in my console: Applications are expected to have a root view controller at the end …

ios objective-c
How to change the background color of a UIButton while it's highlighted?

At some point in my app I have a highlighted UIButton (for example when a user has his finger on …

ios objective-c xcode uibutton
Setting an image for a UIButton in code

How do you set the image for a UIButton in code? I have this: UIButton *btnTwo = [UIButton buttonWithType:UIButtonTypeRoundedRect]; btnTwo.…

ios objective-c iphone ipad uibutton
Generate JSON string from NSDictionary in iOS

I have a dictionary I need to generate a JSON string by using dictionary. Is it possible to convert it? …

ios objective-c json string
Set the maximum character length of a UITextField

How can I set the maximum amount of characters in a UITextField on the iPhone SDK when I load up …

ios objective-c cocoa-touch uitextfield
UIImageView aspect fit and center

I have an image view, declared programmatically, and I am setting its image, also programmatically. However, I find myself unable …

ios objective-c uiimageview uiimage
Duplicate symbols for architecture x86_64 under Xcode

I now have the same question with above title but have not found the right answer yet. I got the …

ios objective-c xcode5
Xcode - ld: library not found for -lPods

I get these errors when I try to build an iOS application. ld: library not found for -lPods clang: error: …

ios objective-c xcode clang cocoapods
How to convert a string into double and vice versa?

I want to convert a string into a double and after doing some math on it, convert it back to …

objective-c
Location Services not working in iOS 8

My app that worked fine on iOS 7 doesn't work with the iOS 8 SDK. CLLocationManager doesn't return a location, and I …

objective-c ios8 location cllocationmanager