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 1

    You just need to appdelegate in the didFinishLaunchingWithOptions method under the condition:

     If(CGSizeEqualToSize([[UIScreen mainScreen] preferredMode].size,CGSizeMake(640, 1136))) 


      storyBoard = [UIStoryboard storyboardWithName:@"MyiPhone5StoryboardName" bundle:nil]; UIViewController *initViewController = [storyBoard instantiateInitialViewController]; [self.window setRootViewController:initViewController];