You’re previewing Ry’s Cocoa TutorialUI Components

Collection Views

Collection Views are the third and final data view that we’ll be discussing in this UI component reference. They display an array of objects as a grid of cells. Each cell contains a custom interface that presents all of the desired information about the corresponding data object.

Displaying product data in a Collection View component

Collection Views are an alternative to Table Views. They both visualize a flat array of objects, but Collection Views are not locked into the rigid row/column structure of tables. They’re designed to be highly customizable, so they can be used almost anywhere you need a grid of similar cells.

This chapter provides a comprehensive overview of the Collection View component. We’ll learn how to connect them with a data set, define custom cells, manage user selections, add and delete items, edit cells at runtime, and implement drag-and-drop behavior.

Sorry, this is the end of the preview. To read the rest of this chapter, you’ll need to purchase Ry’s Cocoa Tutorial.

Mailing List

Sign up for my low-volume mailing list to find out when new content is released. Next up is a comprehensive Swift tutorial planned for late January.

You’ll only receive emails when new tutorials are released, and your contact information will never be shared with third parties. Click here to unsubscribe.