This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) { | |
CGSize result = [[UIScreen mainScreen] bounds].size; | |
if(result.height == 480) | |
{ | |
NSLog(@"Device is iPhone 4"); | |
} | |
if(result.height == 568) | |
{ | |
NSLog(@"Device is iPhone 5s"); |