I want to make an application which has splash image of full screen size.App should be compatible to all the device from iphone 5 to iphone 10.but when i add image in launchscreen.storyboardit leaves the space from right left and bottom.how to add full screen image to launchscreen.storyboard ? if image view is added in launchscreen and image is added .Content mode is also scaletofill still its not working.
i have used assets also but wont achieve it?
pls help with the answers.thanx in advance
Asked
Active
Viewed 2,289 times
0

Aashi
- 170
- 2
- 14
-
are you sure your image is properly generated? i think your image has white spaces – Pratik Jamariya Dec 28 '17 at 12:37
-
No it wont have white spaces.it is properly generated – Aashi Dec 28 '17 at 12:39
-
can you show your view hierarchy? content mode of your image view is "Scale To Fit" i guess right? – Pratik Jamariya Dec 28 '17 at 12:41
-
thanx it is solved actually two views are overlapped and due to it white space is shown ....thank you so much...@PratikJamariya – Aashi Dec 28 '17 at 12:57
-
you're welcome – Pratik Jamariya Dec 28 '17 at 13:08
2 Answers
2
I think, when you are setting the constraints of imageView in LaunchScreen.storyboard, constraints to margin is checked.
try setting the constraints of your imageview, while keeping the constraints of margin unchecked. It will make your image go fullscreen.
Hope it helps :)

Madhur
- 1,056
- 9
- 14
-
-
try using the content mode as "aspect Fill" If the issue still persists, then i think u should change the image and check again. – Madhur Dec 29 '17 at 03:46
-
Thank....It's done...Actually the two views are overlapped which cause the white spaces....Than @madhur Diwan – Aashi Dec 29 '17 at 03:50
-