O'Reilly logo

RubyMotion by Clay Allsopp

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

Grouped-Style UITableViews

Thus far, our table cells have filled the entire width of the screen, with row after row of black-on-white Helvetica. There’s actually another table style, one where the rows don’t fill the view’s frame. If you check Settingsapp, you’ll see what I mean.

This is UITableViewStyleGrouped, in contrast to our previous UITableViewStylePlain. Grouped table views lose the sticky headers in favor of rounded containers to denote each section. Section indexes will technically work with grouped tables, but they don’t look very pleasant, so refrain from using the grouped style with very large data sets.

But wait, we haven’t seen anything about table view styles, so you may be wondering where they come into play. We cheated ...

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