On 18 Jul 2014, at 20:14, Julius Oklamcak <juli...@icodemonks.com> 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 (Cocoa-dev@lists.apple.com) 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 arch...@mail-archive.com