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 can I do Key Value Observing and get a KVO callback on a UIView's frame?

I want to watch for changes in a UIView's frame, bounds or center property. How can I use Key-Value Observing …

iphone ios objective-c uiview key-value-observing
AVPlayer layer inside a view does not resize when UIView frame changes

I have a UIView which contains an AVPlayer to show a video. When changing orientation, I need to change the …

objective-c uiview calayer avplayer
How to make UITextView detect links for website, mail and phone number

I have a UITextView object. The text in UIView has a phone number, mail link, a website link. I want …

ios objective-c hyperlink uitextview
Convert NSArray to NSDictionary

How can I convert an NSArray to an NSDictionary, using an int field of the array's objects as key for …

iphone objective-c nsarray nsdictionary
How to stop NSTimer

Hey so i am just making an example application and i am having a little trouble, So i have a …

iphone objective-c xcode nstimer
can't get correct value of keyboard height in iOS8

I was using this code to determine what is the size of the keyboard : - (void)keyboardWillChange:(NSNotification *)notification { NSDictionary* …

ios objective-c cocoa-touch keyboard ios8
Save images in NSUserDefaults?

Is it possible to save images into NSUserDefaults as an object and then retrieve for further use?

ios objective-c iphone swift ipad
When to use enumerateObjectsUsingBlock vs. for

Besides the obvious differences: Use enumerateObjectsUsingBlock when you need both the index and the object Don't use enumerateObjectsUsingBlock when you …

objective-c multithreading ios4 objective-c-blocks
How to return an NSMutableArray from an NSSet

I'm able to put the contents of an NSSet into an NSMutableArray like this: NSMutableArray *array = [set allObjects]; The compiler …

objective-c cocoa-touch nsmutablearray nsarray nsset
Swift - which types to use? NSString or String

With the introduction of Swift I've been trying to get my head round the new language I'm an iOS developer …

ios objective-c string macos swift