init(items:header:headerSubtitle:headerImage:headerButton:sectionIndexTitle:)
Creates a section with list items, a header, a section index title, and section header details.
Declaration
init(items: [any CPListTemplateItem], header: String, headerSubtitle: String?, headerImage: UIImage?, headerButton: CPButton?, 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.