Search code examples
iosswiftimagesplash-screenlaunchimage

Launch image storyboard added Imageview , but Changing image in asset folder does not actually reflect on Device?


I have added a UIImageView in Launchscreen.storyboard with one image say (splash.png) , but Changing image in asset folder with same name (splash.png) Image , does not actually change on Device instead it shows blank white or same old image as if it have gotten stuck on it. Any idea why is this happening?

My requirement is to change the splash screen in build time and by only changing the image (with same name) in asset folder.

Any help?

Thanks.


Solution

  • I found other solution for launch image.

    1. Delete launch.storyboard
    2. Add image assets (New iOS Launch Image)
    3. Go to Project Setting -> General -> App Icons and Launch Images
    4. Select LaunchImage at Launch Image source
    5. Now while testing , just change the images in image set of LaunchImage.
    6. this will show the change in splash screen without deleting or reseting the device.