共用方式為


UITableViewDataSource.SectionIndexTitles(UITableView) 方法

定義

傳回要顯示為數據表檢視索引的標題陣列。

[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[]

參數

tableView
UITableView

顯示索引的資料表檢視。

傳回

String[]

標題的陣列,例如顯示字母順序清單,會將字串陣列從 「A」 傳回 「Z」。

屬性

備註

索引清單會出現在資料表檢視的右邊緣。

只有具有樣式的資料表應該實作 Plain 這個屬性。

適用於