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.

Adding a custom subview (created in a xib) to a view controller's view - What am I doing wrong

I've created a view in a xib (with an activity indicator, a progress view and a label). Then I've created .…

objective-c ios xib addsubview
NSMutable Dictionary adding objects

Is there a more efficient way to add objects to an NSMutable Dictionary than simple iteration? Example: // Create the dictionary …

objective-c nsmutabledictionary
Force iphone app to restart programmatically?

I am trying to get my iPhone app to restart programmatically when the Logout button is pressed. Has anyone got …

iphone objective-c ios4 application-restart
How to set device (UI) orientation programmatically?

Would like everything on the screen (UI) to be able to rotate from landscape left to right or vica versa. …

ios iphone objective-c orientation
What's the Best Way to Shuffle an NSMutableArray?

If you have an NSMutableArray, how do you shuffle the elements randomly? (I have my own answer for this, which …

objective-c cocoa shuffle
Checking location service permission on iOS

How can I check if location service is enabled for my app? I have 2 storyboards and I want to check …

ios objective-c swift cllocationmanager
How to intercept touches events on a MKMapView or UIWebView objects?

I'm not sure what I am doing wrong but I try to catch touches on a MKMapView object. I subclassed …

ios objective-c cocoa-touch mkmapview iphone-sdk-3.0
How to set an UIActivityIndicatorView when loading a UITableViewCell

I have two UITableViewControllers, A and B. When I tap one cell in table A, I will use UINavigationController to …

iphone objective-c ios xcode uiactivityindicatorview
Linking a static library to an iOS project in Xcode 4

I have a project (AQGridView) that compiles to a static library, but I can't seem to add it to my …

iphone objective-c ios xcode4