iphone6plus 1080x1920

iphone6 750x1334

iphone5-5c-5s 640x1136

iphone4-4s 640x960

iphone iPod touch 320x480

#define IS_IPHONE ([[[UIDevice currentDevice] model] isEqualToString:@"iPhone Simulator"])

// Simulator

#define IS_IPOD ([[[UIDevice currentDevice] model] isEqualToString:@"iPod touch"])

#define IS_HEIGHT_GTE_568 [[UIScreen mainScreen] bounds].size.height >= 568.0f

#define IS_HEIGHT_GTE_667 [[UIScreen mainScreen] bounds].size.height >= 667.0f

#define IS_HEIGHT_GTE_736 [[UIScreen mainScreen] bounds].size.height >= 736.0f

#define IS_IPHONE_5 (IS_IPHONE && IS_HEIGHT_GTE_568)

#define IS_IPHONE_6 (IS_IPHONE && IS_IPHONE_5 && IS_HEIGHT_GTE_667)

#define IS_IPHONE_6_PLUS (IS_IPHONE && IS_IPHONE_6 && IS_HEIGHT_GTE_736)

NSLog(@"X:%f,Y:%f,W:%f,H:%f",[[UIScreen mainScreen] bounds].origin.x,

[[UIScreen mainScreen] bounds].origin.y,[[UIScreen mainScreen] bounds].size.width,

[[UIScreen mainScreen] bounds].size.height);

if (IS_IPHONE) {

   if (IS_IPHONE_6_PLUS) {

      NSLog(@"IPhone 6 Plus");

   } else if (IS_IPHONE_6){

      NSLog(@"IPhone 6");

   } else if (IS_IPHONE_5){

      NSLog(@"IPhone 5/5c/5s");

   } else {

      NSLog(@"IPhone 4 或更低");

   }

}