---
title: "initWithItems:header:sectionIndexTitle:"
framework: carplay
role: symbol
role_heading: Instance Method
path: "carplay/cplistsection/initwithitems:header:sectionindextitle:"
---

# initWithItems:header:sectionIndexTitle:

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

## Declaration

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

Return Value A newly initialized list section.

## See Also

### Creating a Section

- [initWithItems:](carplay/cplistsection/initwithitems:.md)
- [init(items:header:headerSubtitle:headerImage:headerButton:sectionIndexTitle:)](carplay/cplistsection/init(items:header:headersubtitle:headerimage:headerbutton:sectionindextitle:).md)
- [CPListTemplateItem](carplay/cplisttemplateitem.md)
- [CPSelectableListItem](carplay/cpselectablelistitem.md)
- [CPListItem](carplay/cplistitem.md)
- [CPListImageRowItem](carplay/cplistimagerowitem.md)
- [CPMessageListItem](carplay/cpmessagelistitem.md)
