I have an application. You need to adapt it for iphone 5. In essence, you only need to stretch the storyboard. When I tick the Auto Layout box, it becomes impossible to launch an application on iOS 5. So how can I adapt it?
1 answer
You just need to appdelegate in the didFinishLaunchingWithOptions method under the condition:
If(CGSizeEqualToSize([[UIScreen mainScreen] preferredMode].size,CGSizeMake(640, 1136)))
register:
storyBoard = [UIStoryboard storyboardWithName:@"MyiPhone5StoryboardName" bundle:nil]; UIViewController *initViewController = [storyBoard instantiateInitialViewController]; [self.window setRootViewController:initViewController];
|