O'Reilly logo

iOS UICollectionView: The Complete Guide, Second Edition by Ash Furrow

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required