341008
341008

Reputation: 10232

ios sdk version format

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

Answers (1)

Jhaliya - Praveen Sharma
Jhaliya - Praveen Sharma

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

Related Questions