logo
  • 教程列表
  • SO官方文档
  • 检查 iOS 版本
    • iOS 8 及更高版本
    • Swift 2.0 及更高版本
    • 比较版本
    • 设备 iOS 版本
  1. StackOverflow 文档
  2. iOS 教程
  3. 检查 iOS 版本
  4. 设备 iOS 版本

设备 iOS 版本

Created: November-22, 2018

这将给出当前的系统版本。

Objective-C

NSString *version = [[UIDevice currentDevice] systemVersion]

迅速

let version = UIDevice.currentDevice().systemVersion

Swift 3

let version = UIDevice.current.systemVersion
  • 比较版本

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 关于我们
  • 免责声明