【iOS】设备系统版本

判断 iOS 系统的版本号,示例代码如下:

NSLog(@"version--%d", [[[UIDevice currentDevice] systemVersion] floatValue] >= 9.0);

结果如图所示:

原文地址:https://www.cnblogs.com/jaxer/p/5565054.html