21
Collection Views

In this chapter, you will continue working on the Photorama application to display the interesting Flickr photos in a grid using the UICollectionView class. This chapter will also reinforce the data source design pattern that you used in previous chapters. Figure 21.1 shows you what the application will look like at the end of this chapter.

Figure 21.1  Photorama with a collection view

Photorama with a collection view

In Chapter 9, you worked with UITableView. Table views are a great way to display rows of data. Like a table view, a collection view also displays an ordered collection of items, but instead of displaying the information in rows, the collection view has a layout object that drives the display of information. You will use a built-in layout object, the UICollectionViewFlowLayout, to present the interesting photos in a scrollable grid.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.129.39.252