Initializer

init(items:header:sectionIndexTitle:)

Creates a section with list items, a header, and a section index title.

Declaration

init(items: [CPListItem], header: String?, sectionIndexTitle: String?)

Parameters

items

A list of items to include in the section.

header

The section header text.

sectionIndexTitle

A section index title. The system displays only the first character of the title, so choose a single-character section index title.

Return Value

A newly initialized list section.

See Also

Creating a List Section

init(items: [CPListItem])

Creates a section with list items.

class CPListItem

A list item that appears in a list template.