Smooth transition from launch image to main view

marzapower picture marzapower · Jun 10, 2011 · Viewed 10.1k times · Source

Is it possible to implement a smooth transition when the app loads, from the launch image to the first view?

The default behavior is on/off, with an immediate change: the launch image appears, then it instantaneously disappears to let the main view controller take place. I'd like to implement some fading or zooming in or out.

Is this possible?

Thank you!

Answer

Ben Zotto picture Ben Zotto · Jun 10, 2011

There's no framework support, but you can get that result if you do it yourself, manually. Depending on what your launch image is, and what your UI looks like, you can do it in different ways, but basically: make your first view controller load and display your default.png image in an image view when it loads up. Then animate a fade out of that image to reveal your actual UI.