In iOS 8 bounds of ownership UIScreen class now reflects the orientation of the device. To fix this, I could use new nativeBounds of the property, instead of bounds. nativeBounds is measured in pixels. So what code what I put for pixels in ....... area? (this code is in my AppDelegate.m)
[ [ UIScreen mainScreen ] respondsToSelector: @selector( nativeBounds ) ];
if (................... == 1334) {
UIStoryboard *iPhone6 = [UIStoryboard storyboardWithName:@"iPhone6" bundle:nil];
UIViewController *initialViewController =[iPhone6 instantiateInitialViewController];
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen]bounds]];
self.window.rootViewController = initialViewController;
[self.window makeKeyAndVisible];
}
OR do I have the entire code implemented wrong for nativeBounds?
screenBounds doesn't work...
CGRect screenBounds=[[UIScreen mainScreen] bounds];
if (screenBounds.size.height == 667) { //code }