O'Reilly logo

Mastering iOS 10 Programming by Donny Wals

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 2.  A Better Layout with UICollectionView

With iOS 6, Apple made UICollectionView available to developers. The UICollectionView is a very powerful view that enables developers to create beautiful layouts. It's very similar to the UITableView in terms of the APIs that are available and the way it handles delegation to other objects. Both have a data source and a delegate. Both make use of cells to display contents and are heavily optimized to handle huge amounts of data without slowing down.

The main difference between the two is that UICollectionView is more powerful and flexible. It provides developers with an easy-to-configure grid layout out of the box. However, you're free to create any type of layout that you desire with a UICollectionView ...

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