initWithItems:header:sectionIndexTitle:
Creates a section with list items, a header, and a section index title.
Declaration
- (instancetype) initWithItems:(NSArray<id<CPListTemplateItem>> *) items header:(NSString *) header sectionIndexTitle:(NSString *) sectionIndexTitle;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.