Skip to Main Content
iOS UICollectionView: The Complete Guide, Second Edition
book

iOS UICollectionView: The Complete Guide, Second Edition

by Ash Furrow
February 2014
Intermediate to advanced content levelIntermediate to advanced
191 pages
4h 13m
English
Addison-Wesley Professional
Content preview from iOS UICollectionView: The Complete Guide, Second Edition

5. Crafting Custom Layouts Using UICollectionViewLayout

In the preceding chapter, I wrote that UICollectionViewFlowLayout is great for line-based, breaking layouts and that you should always resort to using it first. Sometimes, however, our layouts are sufficiently complicated to warrant the use of something more powerful. UICollectionViewLayout is the superclass of UICollectionViewFlowLayout and it is hands on. You are responsible for everything—the layout of cells, the size of the collection view—everything. We’ll take a look at an example where you’d want to use it, revisit decoration views, and explore a little bit of changing between layouts programmatically with animation. At the end of this chapter, we build a really cool photos application ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

iOS UICollectionView: The Complete Guide

iOS UICollectionView: The Complete Guide

Ash Furrow

Publisher Resources

ISBN: 9780133762631