简体   繁体   中英

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. How do I make the application to fit correctly to all the iPhone devices ?

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

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