Re: How to get iOS version at runtime?
Re: How to get iOS version at runtime?
- Subject: Re: How to get iOS version at runtime?
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Fri, 18 Jul 2014 21:48:41 +0700
On 18 Jul 2014, at 20:14, Julius Oklamcak <email@hidden> wrote:
> [[UIDevice currentDevice] systemVersion] returns a string, i.e. "7.1.2".
>
> if ([[[UIDevice currentDevice] systemVersion] compare:@"8.0"
> options:NSNumericSearch] == NSOrderedDescending)
> // older than 8.0
> else
> // 8.0 and newer
Thanks this works perfectly. Much better than using NSFoundationVersionNumber.
Kind regards,
Gerriet.
_______________________________________________
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