简体   繁体   中英

iOS Universal app Architecture

I'm going to create a Universal iOS application using Swift. The functionality for the iPhone and iPad versions is 70% the same but some parts are different. The app will support all orientations.

What is the best approach for a universal architecture? Should I use separate storyboards and separate classes for iPhone/iPad with separate targets or use the same files?

Separate storyboards would be the better option if you are planning to have very different layouts between the iPhone and iPad storyboards.

Personally, I would try to use the same storyboard for both and utilize both size classes and auto-layout (theres a good tutorial on auto-layout here ) to adjust the views as @RDSpinz suggested in his comment.

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