3. Contextualizing Content

Displaying content to users with basic cells lets developers show off some spartan content. We can use supplementary views to spice things up. First, we look at some new delegate methods to customize the layout of individual cells within the collection view. Then, we apply the techniques and practices we learned in the preceding chapter to contextualize our content for our users. We do this with a chapter-long case study, which 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 contrast to the decoration views we explore ...

Get iOS UICollectionView: The Complete Guide, Second Edition 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.