O'Reilly logo

Xcode 7 Essentials - Second Edition by Jayant Varma, Brett Ohland

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

Collection views

Table views excel at showing you a representation of an array of simple values: think of a long list of city names or a shopping list. The system optimizes for exactly this kind of usage and if you were to try and add a lot more complexity into a table view row, you'd find that you were just fighting the system to make things work.

Collection views, however, were designed, developed, and implemented with the idea of representing large sets of complicated objects. Think of showing the timeline of a Twitter app or an email inbox. The system can handle complicated layouts with many types of visual objects inside each cell. They are infinitely flexible.

Starting the example

To get started, open up the Main.storyboard file and drag a ...

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