UITableViewSource.SectionIndexTitles(UITableView) Method

Definition

Returns an array of titles to be displayed as an index on the table view.

[Foundation.Export("sectionIndexTitlesForTableView:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 10, 2, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual string[] SectionIndexTitles (UIKit.UITableView tableView);
abstract member SectionIndexTitles : UIKit.UITableView -> string[]
override this.SectionIndexTitles : UIKit.UITableView -> string[]

Parameters

tableView
UITableView

Table view that is displaying the index.

Returns

String[]

Array of titles, for example to display an alphabetized list return an array of strings from "A" to "Z".

Attributes

Remarks

The index list appears along the right edge of a table view.

Only tables with the Plain style should implement this property.

Declared in [UITableViewDataSource]

If the returned array contains IndexSearch, the corresponding section index will display a magnifying glass icon. If the application developer desires this behavior, IndexSearch should typically be the first value in the array.

Applies to