UITableView.NumberOfSections 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回表视图中的节数。
[Foundation.Export("numberOfSections")]
public virtual nint NumberOfSections ();
abstract member NumberOfSections : unit -> nint
override this.NumberOfSections : unit -> nint
返回
System.System.IntPtr
System.nativeint
表视图中的节数。
- 属性
注解
UITableView 从 UITableViewSource (或 UITableViewDataSource) 检索此值并将其缓存。