• 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: How to get iOS version at runtime?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >How to get iOS version at runtime? (From: "Gerriet M. Denkmann" <email@hidden>)
 >RE: How to get iOS version at runtime? (From: Julius Oklamcak <email@hidden>)

  • Prev by Date: Re: How do I temporary retain self, under ARC?
  • Next by Date: Re: How to get iOS version at runtime?
  • Previous by thread: RE: How to get iOS version at runtime?
  • Next by thread: Re: How to get iOS version at runtime?
  • Index(es):
    • Date
    • Thread