Developing universal in Xcode 6

后端 未结 3 716
感动是毒
感动是毒 2020-12-13 19:30

I have Xcode 6 beta installed and I\'m trying to develop an universal app. Before Xcode 6, you had to create 2 separate Storyboards for iPad and iPhone and you could set it

3条回答
  •  生来不讨喜
    2020-12-13 19:35

    To support the new Size Classes, you'll need to enable "Use Size Classes" in the File Inspector of your storyboard. This will allow you to configure your storyboard for multiple device sizes.

    Note that this will make your storyboard incompatible with Xcode 5.

    Use Size Classes Xcode

    When you've enabled this, you'll see the size selector appear at the bottom of the screen. Use this to select your device size:

    Size Selector

    In your project preferences, you can still select a different storyboard for iPhone or iPad using the dropbown box. Notice that the storyboard name will persist if you select a different one for each device.

    Device Selection

    Even though this is still an option, Apple is moving developers towards a single, unified storyboard.

提交回复
热议问题