6. Adding Interactivity to UICollectionView

So far, this book has concentrated on every aspect of collection views except interactivity. With the exception of some basic copy/paste support provided to you by UICollectionViewDelegate, the book has not focused on how the user interacts with the collection view beyond basic content offset changes. Sure, you’ve changed layouts in response to user interaction, but that’s not what I mean. I’m talking about how you can add interactivity directly to the collection view and how you can make truly immersive interfaces. The answer is gesture recognizers, which are the main focus of this chapter.

This chapter takes a look back at four code examples and augments them with new user interactivity. This is the ...

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

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.