I think you should focus on your preferred display mode, not iPhone5 detection. Who knows what devices Apple will produce, but if your software supports this mode, it will be reliable in the future.
BOOL isiPhone5 = CGSizeEqualToSize([[UIScreen mainScreen] preferredMode].size,CGSizeMake(640, 1136));
In the future, people may want to change their preferred display mode on the fly. For example, disconnect AppleTV from 720p TV and connect to 1080p without restarting the application, of course.
bioffe Sep 21 '12 at 17:48 2012-09-21 17:48
source share