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