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

后端 未结 7 1052
庸人自扰
庸人自扰 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条回答
  •  囚心锁ツ
    2020-12-13 05:30

    In my universal app, I was using SpriteKit for the main viewcontroller. The SKScene.scaleMode was set to aspectFill. When run in the iPad simulator, the app started up iPhone mode. Solution was to set scaleMode = .resizeFill.

提交回复
热议问题