【iOS】设备系统版本 判断 iOS 系统的版本号,示例代码如下: NSLog(@"version--%d", [[[UIDevice currentDevice] systemVersion] floatValue] >= 9.0); 结果如图所示: