Question

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?

Was it helpful?

Solution

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.

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top