标签:ios 8 val ice float current object bounds == cti
/** 判断是否为 iPhone 5SE */
#define iPhone5SE [[UIScreen mainScreen] bounds].size.width == 320.0f && [[UIScreen mainScreen] bounds].size.height == 568.0f
/** 判断是否为iPhone 6/6s */
#define iPhone6_6s [[UIScreen mainScreen] bounds].size.width == 375.0f && [[UIScreen mainScreen] bounds].size.height == 667.0f
/** 判断是否为iPhone 6Plus/6sPlus */
#define iPhone6Plus_6sPlus [[UIScreen mainScreen] bounds].size.width == 414.0f && [[UIScreen mainScreen] bounds].size.height == 736.0f
/** 获取系统版本 */
#define IOS_SYSTEM_VERSION [[[UIDevice currentDevice] systemVersion] floatValue]
/** 判断 iOS 8 或更高的系统版本 */
#define IOS_VERSION_8_OR_LATER (([[[UIDevice currentDevice] systemVersion] floatValue] >=8.0)? (YES):(NO))
标签:ios 8 val ice float current object bounds == cti
原文地址:https://www.cnblogs.com/CH520/p/9311420.html