判断ios版本号 自定义宏
2014-02-15 14:58
288 查看
#define SYSTEM_VERSION_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedSame)
#define SYSTEM_VERSION_GREATER_THAN(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedDescending)
#define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending)
#define SYSTEM_VERSION_LESS_THAN(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedAscending)
#define SYSTEM_VERSION_LESS_THAN_OR_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedDescending)
#define SYSTEM_VERSION_GREATER_THAN(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedDescending)
#define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending)
#define SYSTEM_VERSION_LESS_THAN(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedAscending)
#define SYSTEM_VERSION_LESS_THAN_OR_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedDescending)
相关文章推荐
- 判断ios设备是否越狱
- IOS中Json解析的四种方法
- ios之自定义导航栏上的返回按钮
- ios之键盘的自定义
- ios 登录功能学习研究
- ios 注册功能研究学习
- iOS 7 认识 TextKit
- iOS 7 认识 TextKit
- iOS 7 认识 TextKit
- iOS7 Xcode 5如何设置隐藏状态栏
- ios 点餐系统
- ios 关于系统音乐和AVAudioPlayer 播放的音频冲突的情况
- nbut [1220] SPY
- 折腾iPhone的生活——iOS设备重刷固件
- NBUT [1219] Time
- nbut [1217] Dinner
- iOS应用调用手机发送短信和拨打电话
- ios专题 - 异步下载加下载进度显示
- IOS多线程
- iOS中关于文件操作