O'Reilly logo

The Core iOS Developer’s Cookbook, Fifth Edition by Rich Wardwell, Erica Sadun

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

Recipe: Basic Collection View Flows

Recipe 10-1 introduces a basic collection view controller implementation, with support for optional headers and footers. This recipe implements the essential data source and delegate methods you need for a simple grid-based flow layout. Apple provides a number of properties to configure responses for the common collection view and flow layout delegate methods. Use these provided properties and simple modification of the source to adjust the number of sections to be viewed, the items per section, and any other layout details that control the overall flow.

Boolean properties determine whether a collection view uses headers and footers. The size can be configured by implementing the first two reference size requests ...

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