iOS 根据屏幕宽度, 高度判断手机设备

#define iPhone_5 [UIScreen mainScreen].bounds.size.width == 320.0

#define iPhone_6 [UIScreen mainScreen].bounds.size.width == 375.0

#define iPhone_6s [UIScreen mainScreen].bounds.size.width == 414.0

 

 

 

#define IS_IPHONE_6 (([[UIScreen mainScreen] bounds].size.height == 667) ? YES : NO)

#define IS_IPHONE_6P (([[UIScreen mainScreen] bounds].size.height >= 736) ? YES : NO)

posted @ 2016-03-30 11:59  SoulDu  阅读(784)  评论(0编辑  收藏  举报