Chapter    10

Collection View and Stack View

In this chapter, we’re going to look at a couple of powerful and flexible UIKit views that are concerned with layout: UICollectionView and UIStackView.

For years, iOS developers have used the UITableView component to create a huge variety of interfaces. With its ability to let you define multiple cell types, create them on the fly as needed, and handily scroll them vertically, UITableView has become a key component of thousands of apps. And Apple has truly given its table view class lots of API love over the years, adding new and better ways to supply it with content in each major new iOS release. However, it’s still not the ultimate solution for all large sets of data. If you want to present data ...

Get Beginning iPhone Development with Swift 2: Exploring the iOS SDK 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.