Different storyboards for different devices in Xcode 6

后端 未结 2 1669
一生所求
一生所求 2020-12-28 18:57

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 Ap

相关标签:
2条回答
  • 2020-12-28 19:26

    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

    0 讨论(0)
  • 2020-12-28 19:48
    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

    0 讨论(0)
提交回复
热议问题