Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dynamically change launch image in iOS

Tags:

ios

iphone

ios4

I have a sponsor logo on the launch image. Is there a way to dynamically change the launch image to rotate sponsor logos?

Thanks

like image 604
David Avatar asked Aug 10 '11 18:08

David


2 Answers

The default image for an iphone app must be a fixed image file in your bundle. You cannot change it dynamically.

However, you can have a dynamic image that appears when the app loads after the launch image. You can set that up with animations or simply to select a random image each time.

like image 75
PengOne Avatar answered Sep 30 '22 14:09

PengOne


According to Apple's HIG, Human Interface Guide, the splash screen is supposed to be used only as a placeholder to give the user the illusion the app is open while it completes it's startup process.

Apple will allow some use of the startup screen, but know they can and do have the right to reject your app solely on how you use it.

Like the previous answer stated, you could do anything you want after the initial startup screen has passed. Play a video, run an animation, or display a second view with your sponsored images.

And finally, I don't recommend doing this, but if you are determined to work something into the startup screen, you could try this.

The splash screen is hardcoded or set to 1 filename. Before your app closes, you could dynamically replace the hardcoded filename with a new file from a webservice or local storage, replacing the existing splash screen image. I haven't tried this, but it is more than likely possible. Just beware that it may not pass muster with Apple's approval process. Good luck.

like image 39
Bill Burgess Avatar answered Sep 30 '22 16:09

Bill Burgess