简体   繁体   中英

First iOS app for all iphone devices

I'm trying to make my first iOS app in xcode 7 for iOS 9 and i want to make it for all the iphone devices like iphone 4,4s,5,5s,6.

Do i have to make a different xib file for each one of the iphone or there is a simple way to make it for EVERY iOS device also like iPad???

There's a magical thing called autolayout. And another thing called universal app

You Can do both in single storyboard first you have to choose Universal while creating project. You need to do autoresize or apply auto layout.

No, you shouldn't need to do device or resolution detection. iOS includes lots of features for adaptive user interfaces. See here for example: https://developer.apple.com/design/adaptivity/

您只需要在应用程序中使用自动布局概念,就会在网上找到大量用于自动布局和调整大小的文档。

您可以使用自动布局为所有设备制作一个应用程序,并使应用程序通用,并且在xcode 7和ios 9中使用新功能可以使用堆栈视图来执行此操作。

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