Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><em><strong>This is a great question.</em></strong></p> <p>What you need to do is,</p> <ol> <li><p>Select your current 4/4s storyboard, go to File, duplicate, then give it an iPhone 5 specific name. <strong>Make sure that Target and your app name is checked.</strong></p></li> <li><p>Next you have to select the scenes in your storyboard and in the Attributes Inspector change the size to Retina 4 Full Screen. This allows you to rearrange everything for this display.</p></li> <li><p>Finally in application didFinishLaunchingWithOptions paste the following code with the storyboard name you gave for your 4 inch storyboard.</p> <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone){ UIStoryboard *storyBoard; CGSize result = [[UIScreen mainScreen] bounds].size; CGFloat scale = [UIScreen mainScreen].scale; result = CGSizeMake(result.width * scale, result.height * scale); if(result.height == 1136){ storyBoard = [UIStoryboard storyboardWithName:@"MainStoryboard_iPhone_5" bundle:nil]; UIViewController *initViewController = [storyBoard instantiateInitialViewController]; [self.window setRootViewController:initViewController]; } } return YES; } </code></pre></li> </ol> <hr> <p><strong>If anyone don't get how to do step 1, do as below.</strong></p> <ol> <li><p>Go to Project directory and copy paste the <code>MainStoryboard.storyboard</code> and rename new storyboard to say <code>MainStoryboard5.storyboard</code>.</p></li> <li><p>Add this new storyboard <code>MainStoryboard5.storyboard</code> in project (in Xcode) by right clicking Project and clicking <code>Add Files to ....</code></p></li> <li><p>Now we have two storyboards in xcode.</p></li> </ol> <p><strong>Tip</strong></p> <p>You may have to use 'Product > Clean' for this to work after you have done all the above.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload