Chapter    4

How The Collection View Fits Together

In this chapter, you’re going to take a whistle-stop tour of collection views and the elements from which they’re built. Although this chapter does not present a lot of code, it will provide a useful foundation for when you start to customize collection views.

Along the way, you’ll look at the following:

  • The anatomy and dimensions of collection views
  • UICollectionView’s relationship to the UIScrollView superclass
  • How to create collection views in code and with Interface Builder
  • Use of the UICollectionViewController class to take advantage of its template methods

What Are Collection Views?

A collection view provides a way of managing and displaying an ordered set of data items with customizable ...

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.