WKInterfaceTable.InsertRows(NSIndexSet, String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
使用指定的 rowType
,將資料列加入至與資料列控制器相關聯的資料表。
[Foundation.Export("insertRowsAtIndexes:withRowType:")]
public virtual void InsertRows (Foundation.NSIndexSet rowIndexes, string rowType);
abstract member InsertRows : Foundation.NSIndexSet * string -> unit
override this.InsertRows : Foundation.NSIndexSet * string -> unit
參數
- rowIndexes
- NSIndexSet
要在其中加入新資料列的索引。
- rowType
- String
與資料列控制器類型相關聯的分鏡腳本識別碼。
- 屬性
備註
rowType
必須符合 Identifier
分鏡腳本中與資料列控制器相關聯的值。
不同于 iOS,資料列不會虛擬化。 Apple 建議 Watch 應用程式使用少於 20 個數據列。