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

Creating a grid with images

In the previous recipe, we learned how to load and display an image inside a container. Obviously, some applications require displaying more than one image on the screen at the same time. It's very interesting to use a grid for displaying images in different rows and columns.

In this recipe, you'll learn how to display a few images using a simple grid with four columns, where different rows are created automatically based on the number of images used. All the file's images for this recipe and the required HTML code are available at: code/ch04/grid in the code bundle provided on the Packtpub site.

Getting ready

This recipe requires the use of the UiUIKit framework. Please, ensure you've installed this framework in your ...

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