6. Adding Interactivity to UICollectionView
So far in this book, we’ve concentrated on every aspect of collection views except interactivity. With the exception of some basic copy/paste support provided to you by UICollectionViewDelegate
, we have not focused on how the user interacts with the collection view beyond basic content offset changes. Sure, we’ve changed layouts in response to user interaction, but that’s not what I’m talking about. I’m asking this: How can we add interactivity directly to the collection view? How can we make truly immersive interfaces? The answer is gesture recognizers, which are the main focus of this chapter.
We’re going to take a look back at four code examples and augment them with new user interactivity. This ...
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.