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

Get Pro iOS Table Views and Collection Views: Using Swift 2 now with O’Reilly online learning.

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