I have iphone app in which I was till now successfully checking is iphone 5 with following code (in my Prefix.pch file):
#define IS_IPHONE_5 ( fabs( ( double )[ [ UIScreen mainScreen ] bounds ].size.height - ( double )568 ) < DBL_EPSILON )
Now when I run on my iPhone 5, I get this height in log: 480 ([[UIScreen mainScreen] bounds].size.height)
I've updated my iPhone on iOS 7. Is there some other way to check if is iPhone 5 (or height of screen)?
UPDATE: I have on my MAC OSX 10.8.5
UPDATE 2: I've figured it out that there is some bug in that project because when I create new project all examples code work.