Unable to resize view in xcode

前端 未结 3 738
感情败类
感情败类 2021-01-24 07:00

I can\'t seem to resize my view to fill the screen in the simulator (see screenshot below - notice the top and bottom black lines) does anyone know how i fix this?

3条回答
  •  感动是毒
    2021-01-24 07:28

    One common reason for this sort of letterboxing is that your app project lacks launch images for all device sizes. An easy way to get past that hurdle is to use a LaunchScreen.storyboard. Make a completely new project in a modern version of Xcode, and you will see that it has a LaunchScreen.storyboard for this very reason.

提交回复
热议问题