WKInterfaceTable.SetNumberOfRows(nint, String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
设置表中的行总数,所有这些行都与具有指定 rowType
的 行控制器相关联。
[Foundation.Export("setNumberOfRows:withRowType:")]
public virtual void SetNumberOfRows(nint numberOfRows, string rowType);
abstract member SetNumberOfRows : nint * string -> unit
override this.SetNumberOfRows : nint * string -> unit
参数
- numberOfRows
- System.System.IntPtr System.nativeint
表中所需的行数。
- rowType
- String
与行控制器类型关联的情节提要标识符。
- 属性
注解
必须与 rowType
情节提要中的行控制器关联的值匹配 Identifier
。
与 iOS 不同,行不会虚拟化。 Apple 建议监视应用使用少于 20 行。