O'Reilly logo

iOS UICollectionView: The Complete Guide by Ash Furrow

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

4. Organizing Content with UICollectionViewFlowLayout

You now have the skills to use UICollectionView to display custom content to your users and can display cells as well as supplementary views. Up until now, I have focused on the actual content and not how it’s organized on the screen. This chapter is going to explore how UICollectionView is architected to use UICollectionViewLayout to organize its content. The chapter takes a close look at UICollectionViewFlowLayout and how subclassing it can get you a lot of customizability without a lot of extra work. The chapter finishes with a short history lesson through an exploration of UITableView and how it’s related to UICollectionView.

What Is a Layout?

UICollectionViewLayout is an abstract class ...

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