Reputation: 10232
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?
Upvotes: 0
Views: 471
Reputation: 31722
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
Upvotes: 1