Contents

CPListSection

A container that groups your list items into sections.

Declaration

class CPListSection

Overview

A section contains zero or more list items. You can configure a section to display a header and a section index title, which CarPlay displays on the trailing edge of the screen. The section header and the section index title are optional.

To create a section, call the initWithItems: method and provide an array of list items. Alternatively, use initWithItems:header:sectionIndexTitle: if you want to display a header and a section index title. CarPlay doesn’t support custom list items, so you must use one of the types that the framework provides, such as CPListItem or CPListImageRowItem.

At runtime, use maximumSectionCount to determine the maximum number of sections that your list can display. When creating items for your sections, use maximumItemCount to establish the maximum number of items across all sections that can appear in your list.

Topics

Creating a Section

Getting Supplementary Information

Getting Items

Configuring Section Headers

Initializers

See Also

Managing Sections