Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you make a universal app using both MainWindow.xib for the iPhone and Storyboard for the iPad?

I made an iPhone app long ago and I'm now thinking of making it a universal app, but I was wondering if I could use Storyboards for making the iPad version, so for the iPhone it would load a MainWindow.xib and for the iPad it would load a MainStoryboard file. Is this possible?

like image 444
user1790012 Avatar asked Oct 31 '12 23:10

user1790012


1 Answers

Yes, but you actually have to make two separate storyboards (1 for iPhone and 1 for iPad).

In the iPhone storyboard, just drag your mainwindow.xib into the middle of the rootViewController and make sure it goes full-screen.

Then, you can do whatever you want with your iPad storyboard.

Make sure that your two storyboard files are linked correctly in your project summary though!

like image 105
Gazzini Avatar answered Sep 30 '22 04:09

Gazzini