[英]How do I make my iOS application resize correctly to all iphone devices?
I have created my iOS application using Xcode but it works fine with iPhone 6 , but when I try to simulate in any other device the UI gets misaligned. 我已经使用Xcode创建了我的iOS应用程序,但是它可以在iPhone 6上正常工作,但是当我尝试在任何其他设备上进行仿真时,UI都未对齐。 How do I make the application to fit correctly to all the iPhone devices ? 如何使应用程序正确适合所有iPhone设备?
You should check autolayout. 您应该检查自动版式。 If You google it You should get A LOT of examples and tutorials, here is one of ma favourites: http://www.raywenderlich.com/50317/beginning-auto-layout-tutorial-in-ios-7-part-1 如果您使用google进行搜索,则应获得大量示例和教程,这是最受欢迎的示例之一: http : //www.raywenderlich.com/50317/beginning-auto-layout-tutorial-in-ios-7-part-1
Follow these links Autolayout or Autolayout programatically 按照以下链接以编程方式自动 布局或自动布局
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.