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 行。

适用于