Re: How to get iOS version at runtime?

2014-07-18 Thread Gerriet M. Denkmann
On 19 Jul 2014, at 10:36, Roland King wrote: > >> On 19 Jul 2014, at 11:05 am, Gerriet M. Denkmann >> wrote: >> >> >> On 18 Jul 2014, at 22:24, Roland King wrote: >> 2. these Notifications have two rects in their userInfo: UIKeyboardFrameEnd and UIKeyboardFrameBegin. In 7.

Re: How to get iOS version at runtime?

2014-07-18 Thread Roland King
> On 19 Jul 2014, at 11:05 am, Gerriet M. Denkmann wrote: > > > On 18 Jul 2014, at 22:24, Roland King wrote: > >>> 2. these Notifications have two rects in their userInfo: UIKeyboardFrameEnd >>> and UIKeyboardFrameBegin. >>> In 7.1.2 these are always in the portrait orientation. To be usable

Re: How to get iOS version at runtime?

2014-07-18 Thread Gerriet M. Denkmann
On 18 Jul 2014, at 22:24, Roland King wrote: >> 2. these Notifications have two rects in their userInfo: UIKeyboardFrameEnd >> and UIKeyboardFrameBegin. >> In 7.1.2 these are always in the portrait orientation. To be usable one has >> to rotate them to the actual orientation. >> In 8.0 they ar

Re: How to get iOS version at runtime?

2014-07-18 Thread Roland King
> > In an ideal world this would probably be true. > And I certainly could wait until all bugs have been fixed by Apple. > But I am kind of impatient. ok > > > 2. these Notifications have two rects in their userInfo: UIKeyboardFrameEnd > and UIKeyboardFrameBegin. > In 7.1.2 these are

Re: How to get iOS version at runtime?

2014-07-18 Thread Gerriet M. Denkmann
On 18 Jul 2014, at 20:30, Roland King wrote: > >> On 18 Jul 2014, at 3:40 pm, Gerriet M. Denkmann wrote: >> >> How to get iOS version at runtime? >> >> Like: >> >> BOOL isRunningOnDeviceOrSimulatorInVersion8 = ??? >> >> I seem to have asked this question before (about OS X) and was told to

Re: How to get iOS version at runtime?

2014-07-18 Thread Gerriet M. Denkmann
On 18 Jul 2014, at 20:14, Julius Oklamcak 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 new

Re: How to get iOS version at runtime?

2014-07-18 Thread Roland King
> On 18 Jul 2014, at 3:40 pm, Gerriet M. Denkmann wrote: > > How to get iOS version at runtime? > > Like: > > BOOL isRunningOnDeviceOrSimulatorInVersion8 = ??? > > I seem to have asked this question before (about OS X) and was told to use > either NSAppKitVersionNumber or NSFoundationVersion

RE: How to get iOS version at runtime?

2014-07-18 Thread Julius Oklamcak
[[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 -Original Message- From: cocoa-dev-bounces+juliuso