Class

CPListItem

A list item that appears in a list template.

Declaration

class CPListItem : NSObject

Topics

Creating a List Item

init(text: String?, detailText: String?)

Creates a list item with the specified text and detailed text.

init(text: String?, detailText: String?, image: UIImage?)

Creates a list item with the specified text, detailed text, and image.

init(text: String?, detailText: String?, image: UIImage?, showsDisclosureIndicator: Bool)

Creates a list item with the specified text, detailed text, image, and disclosure indicator.

let CPMaximumListItemImageSize: CGSize

The maximum size for a list item image.

Getting List Item Information

var text: String?

The primary text displayed in the list item cell.

var detailText: String?

Extra text displayed below the primary text in the list item cell.

var image: UIImage?

The image displayed on the leading edge of the list item cell.

var showsDisclosureIndicator: Bool

A Boolean value indicating whether the list item cell shows a disclosure indicator on the trailing edge of the list item cell.

Providing Additional Information

var userInfo: Any?

A object containing custom information associated with the list item.

Relationships

Inherits From

See Also

Creating a List Section

init(items: [CPListItem])

Creates a section with list items.

init(items: [CPListItem], header: String?, sectionIndexTitle: String?)

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