Can you make a universal app with storyboards without the ipad storyboard file, just the iphone storyboard file and use the iPhone storyboard file for iPad too?

有帮助吗?

解决方案

Universal application means that you are building the application for both iPad and iPhone (iPod too) devices.

iPhone / iPod means that you are building the application only for iPhone and iPod.

When you start a new project, Xcode asks you if you want to make the application Universal or for iPhone / iPod only.

If you already have a project, you can go into Targets > Summary > Devices and from there you can set the type of the application.

Then you select the Main Storyboard for iPhone (in this case) and you are done.

EDIT

By reading your comment, you should make the app Universal and then set a new Storyboard for your iPad version (i.e. mainStoryboard~iPad.xib).

Then just make the content identical to the iPhone's storyboard.

其他提示

In the project settings (click on your project at the very top of the project navigator) in the summary tab for your target, you can specify two different files to use as main storyboard files for both iphone and ipad. In this case, just specify the same file for both devices

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top