#define iPhone5 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 1136), [[UIScreen mainScreen] currentMode].size) : NO)-(void)viewDidAppear:(BOOL)animated{ if (iPhone5) { NSLog(@"555555"); } else { NSLog(@"noooooo"); }}
方法二:
#define IS_IPHONE5 (([[UIScreen mainScreen] bounds].size.height-568)?NO:YES)
if
(IS_IPHONE
5
) {
// 设计
}