简体   繁体   中英

iOS simulator (iPhone6) viewControllers does not match storyBoard controllers

in another project of mine, which I started working on a few months ago, if I take some storyboard viewController and add it some pink view for instance, the pink view will appear exactly as in the storyboard when running in iOS simulator iPhone 6. while in a new project I'm working on, the view in iOS simulator (iPhone 6) is in size of the storyboard view (which is iPhone 5). iPhone 6模拟器上的iPhone 5视图

btw, in my previous project i didn't use size Classes, and didn't have any constrains anywhere. I'd like it to stay like this in my current project. how can it be done ? thanks in advance!

For the size issue as shown above, Check for the launch nib file. for the Project. use the launch file size to the maximum device size as for now 5.5'.

This could happen coz of any of 2 as below:

  1. Try making launch file to 5.5inch size OR set Launchimage for big screen size.
  2. Other than that Please check if you have set your view and its background to flexible width/height or not.

May be this could solve your issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM