简体   繁体   English

iOS模拟器(iPhone6)viewControllers与storyBoard控制器不匹配

[英]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). 在我几个月前开始工作的另一个项目中,如果我使用一些情节提要viewController并将其添加为粉红色视图,例如,在iOS模拟器iPhone 6中运行时,该粉红色视图将与情节提要完全一样。在我正在处理的新项目中,iOS模拟器(iPhone 6)中的视图与情节提要视图(即iPhone 5)的大小相同。 iPhone 6模拟器上的iPhone 5视图

btw, in my previous project i didn't use size Classes, and didn't have any constrains anywhere. 顺便说一句,在我以前的项目中,我没有使用size类,并且在任何地方都没有任何约束。 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. 对于上面显示的大小问题,请检查启动nib文件。 for the Project. 该项目。 use the launch file size to the maximum device size as for now 5.5'. 使用启动文件大小达到当前5.5'的最大设备大小。

This could happen coz of any of 2 as below: 可能发生以下2项中的任何一项,因为:

  1. Try making launch file to 5.5inch size OR set Launchimage for big screen size. 尝试将启动文件设置为5.5英寸大小, 将Launchimage设置为大屏幕尺寸。
  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. 也许这可以解决您的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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