共用方式為


WKInterfaceTable.InsertRows(NSIndexSet, String) 方法

定義

使用指定的 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 個數據列。

適用於