Instance Method

initWithItems:

Initializes a section with list items.

Declaration

- (instancetype)initWithItems:(NSArray<CPListItem *> *)items;

Parameters

items

A list of items to include in the section.

Return Value

A newly initialized list section.

See Also

Creating a List Section

- initWithItems:header:sectionIndexTitle:

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

CPListItem

A list item that appears in a list template.