[[[UIDevice currentDevice] systemVersion] floatValue]
#define SYSTEW_VERSION_LESS_THAN(v) ([[[UIDevice currentDevice] systemVersion] floatValue] < [[NSString stringWithFormat:(v)] floatValue])
本文介绍了一种在iOS开发中判断当前设备系统版本的方法。通过使用Objective-C代码,可以有效地检查设备是否运行指定版本的iOS系统。这对于适配不同版本的iOS系统特性非常有用。
[[[UIDevice currentDevice] systemVersion] floatValue]
#define SYSTEW_VERSION_LESS_THAN(v) ([[[UIDevice currentDevice] systemVersion] floatValue] < [[NSString stringWithFormat:(v)] floatValue])

被折叠的 条评论
为什么被折叠?