UIImageView not reading LaunchImage form Assets

634 views Asked by At

I added LaunchImage in my assets and trying to load it on on Launch.storyboard UIImageView. But its not picking up the image.

My Launch Image Source is "LaunchImage". During launch my app is showing distorted image.

Thanks in advance.

Added all launch images with sizes

Not reading images from LaunchImage

enter image description here

3

There are 3 answers

0
Arti On

Somehow there were 2 asset files in my project with different names and it was picking up the old LaunchImage I used earlier from the other assets file. Removing that file, clean project and relaunch solved the issue. Thanks for the help.

5
Hardik Thakkar On

This is wrong way to load splash screen. To show image from assets you need to change other setting.

Note : Select Launch image assets from project target General tab-> App icons and Lunch images -> Lunch Images Source. click on that and select LunchScreen from assets which you already added. Delete app and run again

4
Dogan Altinbas On

Change your Launch screen source to LaunchImage under General Settings tab.

enter image description here