O'Reilly logo

Pro iOS Table Views and Collection Views: Using Swift 2 by Tim Duckett

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

Chapter    9

Improving Interaction

So far, the cells that you have been creating have been relatively static: the user’s interaction with them has been limited to tapping for selection and editing.

That’s not all you can do with cells, though, so this chapter looks at some of the tricks you can use to make table and collection views truly interactive:

  • Embedding custom controls including buttons, switches, and sliders within the cell
  • Implementing the widely used pull-to-refresh functionality
  • Adding gesture recognizers to cells to support double taps and so on
  • Implementing search within the contents of the view

No matter how interactive the view is, however, it’s not going to deliver a good user experience if it’s not responsive. Although we’ve ...

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