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

UICollectionView performance

We've already established how similar UITableView is to UICollectionView. In terms of performance, the similarities just don't stop. UICollectionView is optimized to display cells on screen as fast as possible with as little memory usage as possible. This is especially important for UICollectionView because in a collection, a lot more views could potentially be on screen than in a table. This depends heavily on your layout choices, and this makes it even more important for UICollectionView to be optimized the way it is.

The fact that UICollectionView can show a lot of cells at once makes it a little bit harder to manage its performance. Before iOS 10, cell reuse was managed as depicted in the next screenshot. All of ...

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