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

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