Objective-C Versions of iPhone and Screen Sizes

Objective-C Versions of iPhone and Screen Sizes

Hello, this article: that will tell code scripts of iPhone, which screen, which version, which model. First Delegate file our .h file @interface before we add the following lines; #define IS_IPAD (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) #define IS_IPHONE (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) #define IS_IPHONE_4 (IS_IPHONE && [[UIScreen mainScreen] bounds].size.height == 480.0) #define IS_IPHONE_5 [...]