-1

This might be a silly question. I am trying to add launch screen to my app. In Xcode (11.3),I added the imageview in "LaunchScreen.storyboard" and added the image, when i run it in simulator, i notice the top and bottom of screen has default white color. Attached is the screen shot, can any one let me know, how i can add the entire image on screen.

Launch Screen

Launch Screen

Sujesh Surya
  • 143
  • 1
  • 1
  • 12

1 Answers1

0

Try setting ContentMode of the UIImageView to scaleAspectFill

After doing that you still got the problem so all you need to do set your top and bottom constraints to superview so the white area will not appear.

first image

after that step you should double click on top space and another thing will open which is also you can see in below image. second image set the top and button constraints like this and you white space will gone.

Vipin Pareek
  • 236
  • 2
  • 10