Xcode 6 & Swift: Black bars appear above and below the viewcontroller on iOS 7 iPhone 5 device

后端 未结 5 525
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-06 02:42

I created a single view test app and tried running it on my iPhone 5 with iOS 7 installed. It looks like the screen is set to the iPhone 4 size and black bars appear above and b

5条回答
  •  爱一瞬间的悲伤
    2021-02-06 03:26

    For some reason, the default LaunchScreen.xib that comes with a new project on Xcode 6.1 is 480x480, while the standard .xib file size for auto layout and adaptive layout appears to be 600x600. If you set the LaunchScreen.xib view size to 600x600, it should fix the problem, did for me.

提交回复
热议问题