Xcode storyboard: Why does the iPad storyboard show iPhone sized views?

后端 未结 7 1085
庸人自扰
庸人自扰 2020-12-13 05:05

I have a universal app that uses storyboards. There is an iPhone storyboard and an iPad storyboard. However, in interface builder, the viewcontrollers for the iPad storyboar

7条回答
  •  猫巷女王i
    2020-12-13 05:25

    This answer is not a solution, but will help to get one of the reasons why such things happen.

    The issue occurs when you try to disable:

    "Use Auto Layout"

    When you uncheck it, the popup window appears. There is select:

    "Keep size class data for: iPhone", by default is selected iPhone (no matter which iPad or iPhone project you created).

    If you will not mention on it, your storyboard will be auto converted to iPhone sizes.

    Do not forget to choose right device.

提交回复
热议问题