UITableViewDataSource.SectionIndexTitles(UITableView) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
傳回要顯示為數據表檢視索引的標題陣列。
[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 這個屬性。