Re: iOS version check
Re: iOS version check
- Subject: Re: iOS version check
- From: Shane Stanley <email@hidden>
- Date: Sat, 13 Jun 2015 11:14:42 +1000
On 13 Jun 2015, at 4:46 am, Steve Christensen <email@hidden> wrote:
>
> 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.
There's always -respondsToSelector:, which should then account for iOS 7.
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
_______________________________________________
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