UITableView.NumberOfSections Method

Definition

Returns the number of sections in the table view.

[Foundation.Export("numberOfSections")]
public virtual nint NumberOfSections ();
abstract member NumberOfSections : unit -> nint
override this.NumberOfSections : unit -> nint

Returns

System.System.IntPtr System.nativeint

Number of sections in the table view.

Attributes

Remarks

UITableView retrieves this value from the UITableViewSource (or UITableViewDataSource) and caches it.

Applies to