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 ...
Get The Core iOS Developer’s Cookbook, Fifth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.