<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CarPlay",
  "identifier" : "/documentation/CarPlay/CPListSection/initWithItems:header:sectionIndexTitle:",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "CarPlay"
    ],
    "preciseIdentifier" : "c:objc(cs)CPListSection(im)initWithItems:header:sectionIndexTitle:"
  },
  "title" : "initWithItems:header:sectionIndexTitle:"
}
-->

# initWithItems:header:sectionIndexTitle:

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

```
- (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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)