Instance Method

initWithTitle:sections:

Initializes a list template with an array of list sections and optional title.

Declaration

- (instancetype)initWithTitle:(NSString *)title sections:(NSArray<CPListSection *> *)sections;

Parameters

title

A title shown in the navigation bar while the template is visible.

sections

An array of list sections. Each section should contain at least one list item.

Return Value

A newly initialized list template.

See Also

Creating a List Template

CPListSection

A section of list items that appear in a list template.