Detect an iPhone 5

2012-09-12

Here’s one way to detect an iPhone 5

CGRect screenBounds = [[UIScreen mainScreen] bounds];

if (screenBounds.size.height == 568) {
NSLog(@"iPhone 5");
}