简体   繁体   English

如何使我的iOS应用程序正确调整为所有iphone设备的大小?

[英]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

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

相关问题 如何调整所有 iOS 设备的图像大小? - How can I resize the image for all iOS devices? 如何使我的按钮在所有媒体设备上正确显示? - How can I make my button display correctly on all media devices? (iOS) 如何查看 iPhone 的配对蓝牙设备? - (iOS) How do I check an iPhone's paired Bluetooth devices? 如何使约束正确调整按钮的大小? - How do i make the constraints resize the buttons correctly? 如何在Swift Xcode中为所有设备在整个屏幕上边框? - How do I make a border around my whole screen for all the devices in Swift Xcode? 如何在所有旧的iPhone设备上运行ios 6(iPhone 5)应用程序? - How to run ios 6 (iPhone 5)app in all old iphone devices? 如何使我的应用显示另一个屏幕以显示左横向和右横向,i​​Phone X iOS - How do I make my app display another screen for landscape left and landscape right, iPhone X iOS 如何在启动时使我的iPhone / iOS应用程序打开野生动物园窗口 - how do i make my iphone/ios app open a safari window on launch 如何在iphone应用程序中的一个表格单元格中容纳所有信息? - How do I accommodate all the information in one table cell in my iphone application? 如何使用iPhone测试IOS的Unity项目? - How do I test my Unity project for IOS with my IPhone?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM