Chapter    7

Improving the Look of Cells

Using UITableView’s built-in standard cell types is a great way to get up and running quickly. But pretty soon you’re going to run up against the limitations of the standard look and feel, and you’ll want to move beyond the typical layouts.

If you’re working with a UICollectionView, you don’t have any standard cells in the first place, so you’re going to need to customize them yourself from the outset.

Creating and using custom cells isn’t difficult, and builds on all the topics that we’ve covered so far. There are four main ways of customizing cells:

  • Add subviews to the cell’s contentView in code.
  • Create prototype cells in a Storyboard.
  • Create a custom cell in a XIB by using Interface Builder.
  • Create ...

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.