• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: iOS version check
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iOS version check


  • Subject: Re: iOS version check
  • From: Steve Christensen <email@hidden>
  • Date: Fri, 12 Jun 2015 11:46:22 -0700

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@hidden> wrote:
>
> On Jun 12, 2015, at 06:22 , Steve Christensen <email@hidden> wrote:
>>
>> NSInteger majorSystemVersion = UIDevice.mainDevice.systemVersion.integerValue;
>
>
> On Jun 12, 2015, at 08:11 , David Brittain <email@hidden> 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@hidden)

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:

This email sent to email@hidden


  • Follow-Ups:
    • Re: iOS version check
      • From: Shane Stanley <email@hidden>
References: 
 >iOS version check (From: Quincey Morris <email@hidden>)
 >Re: iOS version check (From: Steve Christensen <email@hidden>)
 >Re: iOS version check (From: David Brittain <email@hidden>)
 >Re: iOS version check (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: iOS version check
  • Next by Date: Re: iOS version check
  • Previous by thread: Re: iOS version check
  • Next by thread: Re: iOS version check
  • Index(es):
    • Date
    • Thread