Share via


UITableView.NumberOfSections 方法

定义

返回表视图中的节数。

[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) 检索此值并将其缓存。

适用于