3. Contextualizing Content

Displaying content to users with basic cells lets developers show off some very spartan content. You can use supplementary views to spice things up. First, this chapter looks at some new delegate methods to customize the layout of individual cells within the collection view. Then, you apply the techniques and practices you read about in Chapter 2, “Displaying Content Using UICollectionView,” to contextualize your content for your users. The chapter-long case study is called “Survey” in the sample code.

Supplementary Views

Supplementary views are views that scroll with the cells of a collection view and display some kind of information about the data of that collection. These are “data-driven” views, which stand in ...

Get iOS UICollectionView: The Complete Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.