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.
Asked
Active
Viewed 947 times
-1
-
Try setting `ContentMode` of the `UIImageView` to `scaleAspectFill` – Sayooj Feb 17 '20 at 04:02
-
ContentMode = Scale To Fill, did work for me. thanks. – Sujesh Surya Feb 17 '20 at 06:05
1 Answers
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.
after that step you should double click on top space and another thing will open which is also you can see in below image.
set the top and button constraints like this and you white space will gone.

Vipin Pareek
- 236
- 2
- 10