Detecting iPhone 5

iphone 5 sugartin xcode detect

Attempt to check if the current device is an iPhone 5 at runtime. The most advanced version of this I’ve found is from this answer on StackOverflow. The following is a slightly modified version of the macros created in the StackOverflow … Continue reading

Accessing Documents directory via a constant

Declare following constant in yourApplication.pch file & then you can easily access documents directory very easily.

For example, I have placed the code of my application’s .pch file here.

I have illustrated an example where I want to … Continue reading