简体   繁体   English

自动布局iPhone 6不起作用

[英]Autolayout iPhone 6 doesn't work

I developed an app for iOS, this app should work for iPhone 4s, iPhone 5, iPhone 5c, iPhone 5s, iPhone 6 and iPhone 6+. 我为iOS开发了一个应用程序,该应用程序应适用于iPhone 4s,iPhone 5,iPhone 5c,iPhone 5s,iPhone 6和iPhone 6+。 I read the apple documentations and I found that I've to design only a Storyboard in which I use auto layout and size class. 我阅读了苹果的文档,发现我只需要设计一个使用自动布局和大小类的情节提要。 I designed the user interface with Storyboard and I set all constraints, but when I run it on my iPhone 6 it shows me the user interface not optimized for the display of my iPhone 6. Here's a sample: 我使用Storyboard设计了用户界面,并设置了所有约束,但是当我在iPhone 6上运行它时,它向我展示的用户界面并未针对iPhone 6的显示进行优化。以下是一个示例:

在此处输入图片说明

As you can see it shows me the view with big operator log, big clock, big battery indicator and big keyboard. 如您所见,它显示了具有大操作员日志,大时钟,大电池指示器和大键盘的视图。 Why it doesn't work? 为什么不起作用? Should I add the splash screen for Retina 4.7 and Retina 5.5? 我应该为Retina 4.7和Retina 5.5添加启动屏幕吗?

您需要添加“启动屏幕文件”,该文件是XIB或情节提要,显示启动时显示的屏幕。

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

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