16
votes

In the new Xcode 6, we have just one storyboard for universal apps. But the differences in my app are beyond the different sizes of the screen between iPhone and iPad. My App iPhone screen does not rotate, it's just portrait, and my iPad screen rotate all. My iPhone first screen is a table view, and my iPad first screen is a collection view, and other differences. How can I make it happen in Xcode 6?

In other words. At Xcode 5 even using universal apps, i have two storyboards, one for iPad and another for iPhone. But now, in Xcode 6, theres just one storyboard for universal apps. I want to have two storyboards again, but I didn't find how to do this.

2
I m no getting you, But you should create diff. story board for iPhone and iPad. And not for diff. iPhone screen size. Does this answer your question? - user821127
I'm sorry, but english is not my native language. I'll try to explain it. At xcode 5 even using universal apps, i have two storyboards, one for iPad and another for iPhone. But now, in xcode 6, theres just one storyborad for universal apps. I want to have two storyboards again, but I didn't find how to do this. - Alexandre Nunes Costa
Ok. Yes as Matt specified, you can still do it. But you need to manually configure it like what you have in Xcode 5. - user821127
I don't have level to put images at my question, but in Xcode 6 theres no fields to configure two storyborads like in Xcode 5. I've uploaded the prints in my Google Drive. drive.google.com/… - Alexandre Nunes Costa
You are not listening to what @TechNet-Weblineindia is telling you. Look in the Info.plist for your existing two-storyboard app. Configure the Info.plist for your new app to look like that. - matt

2 Answers

6
votes

At Xcode 5 even using universal apps, i have two storyboards, one for iPad and another for iPhone. But now, in Xcode 6, theres just one storyboard for universal apps. I want to have two storyboards again, but I didn't find how to do this.

Do it the same way you were doing it in Xcode 5. No law says you have to have just one storyboard in a universal app in Xcode 6. The old way works just fine. I have apps that still do this (recompiled in Xcode 6 for iOS 8); it works.

However, something odd is undoubtedly going on. Look at this screen shot. It shows two projects open simultaneously in Xcode 6. One shows the iPhone / iPad buttons for switching between settings within the Universal setting; the other doesn't. I can't find a difference between the two projects that causes this differing interface.

enter image description here

46
votes
  1. Open your Project setting >> select info
  2. In Custom iOS Target Properties add New row name Main storyboard file base name (iPad) and set value to "your new storyboard file name"

or You can find the way in my blog

Xcode 6 Separate storyboard for iPad and iPhone