Chapter    5

Feeding Data to Your Views

When working with table and collection views, it’s important to bear in mind that on their own, they are able to do very little. Just as it takes a small army of ground staff (not to mention the flight crew!) to get an airliner off the tarmac and into the skies, so tableViews and collectionViews need the help and support of other objects in order to function properly.

One of the main parts of building tableViews and collectionViews is getting the objects to play nicely together, so this chapter covers the following:

  • Where the views gets their data, and how you get it there
  • How the views keep track of cells and sections
  • An initial look at how the views handle interaction
  • An overview of the architecture patterns ...

Get Pro iOS Table Views and Collection Views: Using Swift 2 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.