I hadn't seen the NSProcessInfo method before so I took a peek at the header 
and noticed that it's available as of iOS 8:

- (BOOL) isOperatingSystemAtLeastVersion:(NSOperatingSystemVersion)version 
NS_AVAILABLE(10_10, 8_0);

If your app still needs to run on iOS 7 then using the UIDevice method may be a 
better way to go.


> On Jun 12, 2015, at 10:04 AM, Quincey Morris 
> <[email protected]> wrote:
> 
> On Jun 12, 2015, at 06:22 , Steve Christensen <[email protected]> wrote:
>> 
>> NSInteger majorSystemVersion = 
>> UIDevice.mainDevice.systemVersion.integerValue;
> 
> 
> On Jun 12, 2015, at 08:11 , David Brittain <[email protected]> wrote:
>> 
>> You can use NSProcessInfo isOperatingSystemAtLeastVersion
> 
> Thanks for the suggestions. I think I’ll use NSProcessInfo because it’s 
> already in numeric form.


_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to