I'm not using Auto Layout because I prefer to work with each device separately without those constraints. I have a separate storyboard for iPhone 5 and another for iPhone 6. I got the correct code in AppDelegate.m because on simulator the iPhone 5 storyboard loads on iPhone 5 simulator and iPhone 6 storyboard loads on iPhone6 simulator. On device, iPhone 5 storyboard loads on iPhone 5 device and iPhone 5 storyboards loads on iPhone 6 device but a zoomed version.
I used the following in code in application didFinishLaunchingWithOptions in AppDelegate.m...
CGSize iosScreenSize = [[UIScreen mainScreen] bounds].size;
if (iosScreenSize.height ==667) {
UIStoryboard *iPhone6 =[UIStoryboard storyboardWithName:@"iPhone6" bundle:nil];
UIViewController *initialViewController =[iPhone6 instantiateInitialViewController];
self.window.rootViewController = initialViewController;
[self.window makeKeyAndVisible];
}
Why is the simulator loading the correct storyboard for iPhone 6 but the device loads the wrong storyboard, how can that even be??