iOS版本号

来源:互联网 发布:成都程序员工资一般多少 编辑:程序博客网 时间:2024/05/17 20:30
#define IOS5 ([[[UIDevice currentDevice] systemVersion] intValue] >= 5 ? YES : NO)
#define IOS6 ([[[UIDevice currentDevice] systemVersion] intValue] >= 6 ? YES : NO)
#define IOS7 ([[[UIDevice currentDevice] systemVersion] intValue] >= 7 ? YES : NO)
#define IOS8 ([[[UIDevice currentDevice] systemVersion] intValue] >= 8 ? YES : NO)

0 0