O'Reilly logo

iOS 8 SDK Development, 2nd Edition by Janie Clayton, Chris Adamson

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

Customizing Table Appearance

While it’s great to have the Twitter data in our table cells, only having access to a single, one-line text label makes it impossible to show the various fields of the ParsedTweet; at this point, we don’t even know who sent which tweet! We need to change what these table cells look like, to provide more room to show our data.

Table Cell Styles

When we create the UITableViewCell in tableView(cellForRowAtIndexPath:), our init method takes a style argument. As it turns out, this can allay our problems somewhat.

The available styles are collected in an enumeration, which declares both a type and a closed set of possible values for that type. Four cell styles are defined in the UITableViewCellStyle enumeration, of which ...

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