ios sdk version format

…衆ロ難τιáo~ 提交于 2019-12-11 23:40:16

问题


Does the iOS version string follow a documented format? I want to parse the sdk version strings and sort them in ascending order. Does the Apple documentation say anything about this?


回答1:


From UIDevice

@property(nonatomic,readonly,retain) NSString *systemVersion

An example of the system version is @”1.2”.

@propertyic,readonly,retain) NSString *systemName
@propertyic,readonly,retain) NSString *model

Possible examples of model strings are @”iPhone” and @”iPod touch”.

Blog post to access the UIDevice property



来源:https://stackoverflow.com/questions/6033734/ios-sdk-version-format

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!