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.

Resize UIImage by keeping Aspect ratio and width

I seen in many posts for resizing the image by keeping aspect ratio. These functions uses the fixed points(Width …

iphone objective-c ios aspect-ratio fixed-width
UILabel is not auto-shrinking text to fit label size

I have this strange issue, and im dealing with it for more than 8 hours now.. Depending on situation i have …

iphone objective-c ios cocoa-touch ipad
AES Encryption for an NSString on the iPhone

Can anybody point me in the right direction to be able to encrypt a string, returning another string with the …

iphone objective-c encryption nsstring aes
Storyboard doesn't contain a view controller with identifier

I keep getting the following error: Storyboard (<UIStoryboard: 0x7ebdd20>) doesn't contain a view controller with identifier 'drivingDetails' …

ios objective-c xcode storyboard
Why does viewWillAppear not get called when an app comes back from the background?

I'm writing an app and I need to change the view if the user is looking at the app while …

ios objective-c iphone viewwillappear
How to print out the method name and line number and conditionally disable NSLog?

I'm doing a presentation on debugging in Xcode and would like to get more information on using NSLog efficiently. In …

objective-c cocoa cocoa-touch xcode nslog
Get to UIViewController from UIView?

Is there a built-in way to get from a UIView to its UIViewController? I know you can get from UIViewController …

ios objective-c cocoa-touch uiview uiviewcontroller
command/usr/bin/codesign failed with exit code 1- code sign error

I'm currently in the process of submitting my first app to the Apple store. I've completed the following processes Obtained …

ios objective-c xcode codesign xcode-archive
How can I reverse a NSArray in Objective-C?

I need to reverse my NSArray. As an example: [1,2,3,4,5] must become: [5,4,3,2,1] What is the best way to achieve this?

objective-c nsarray
How to hide the keyboard when I press return key in a UITextField?

Clicking in a textfield makes the keyboard appear. How do I hide it when the user presses the return key?

ios objective-c cocoa-touch delegates