I would like to know in what situation did you use -retainCount so far, and eventually the problems that can happen using it. Thanks.
I know UIKit uses CGFloat because of the resolution independent coordinate system. But every time I want to check if for example frame.origin.x is 0 it makes me feel sick: if (theView.frame.origin.x...
I am using NSDate *date = [NSDate date]; for getting the date, but the date I get is off by 2 hours.
Is there a way to determine the device running an application. I want to distinguish between iPhone and iPod Touch, if possible.
On iPhone NSLocalizedString returns the string in the language of the iPhone. Is it possible to force NSLocalizedString to use a specific language to have the app in a different language than the devi...
My app that worked fine on iOS 7 doesn't work with the iOS 8 SDK. CLLocationManager doesn't return a location, and I don't see my app under Settings -> Location Services either. I did a Goo...
If you have an NSMutableArray, how do you shuffle the elements randomly? (I have my own answer for this, which is posted below, but I'm new to Cocoa and I'm interested to know if there is a better wa...
How do I set up NSZombieEnabled and CFZombieLevel for my executable in Xcode 4?
Alright, so I've been doing some poking around, and I realize my problem, but I don't know how to fix it. I have made a custom class to hold some data. I make objects for this class, and I need to t...
What's the difference between a class method and an instance method? Are instance methods the accessors (getters and setters) while class methods are pretty much everything else?