Neelam Verma
Neelam Verma

Reputation: 3274

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.

Upvotes: 0

Views: 901

Answers (2)

Neelam Verma
Neelam Verma

Reputation: 3274

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.

Upvotes: 2

Srujan Simha Adicharla
Srujan Simha Adicharla

Reputation: 3723

I know this is a weird issue that everyone faces at some point of time.

For the simulator, resetting content and settings worked for me.

Got to Simulator > Reset Content and Settings

Sometimes you need to restart the simulator or even Xcode if that matters. If it's the device, try deleting the app or restarting it would fix the issue.

Upvotes: 0

Related Questions