O'Reilly logo

iPhone JavaScript Cookbook by Arturo Fernandez Montoro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Specifying a splash image

In a similar way for native applications, you can indicate and use a splash image for your web applications. This kind of image is very useful for displaying something on the screen while the application is loading. Some applications don't need it, but this technique will be especially useful when our web application is offline. By default, a screenshot of the web application the last time it was launched will be displayed. In order to avoid it, our splash image comes to the rescue.

This recipe shows you how to use a splash image for your iOS devices.

Getting ready

For this recipe, we don't need any framework, but for simplicity you can use the same file of the previous recipe.

How to do it...

If you're using the same file ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required