UITableViewSource.NumberOfSections(UITableView) Method

Definition

Returns the number of sections that are required to display the data.

[Foundation.Export("numberOfSectionsInTableView:")]
public virtual nint NumberOfSections (UIKit.UITableView tableView);
abstract member NumberOfSections : UIKit.UITableView -> nint
override this.NumberOfSections : UIKit.UITableView -> nint

Parameters

tableView
UITableView

Table view displaying the sections.

Returns

System.System.IntPtr System.nativeint

Number of sections required to display the data. The default is 1 (a table must have at least one section).

Attributes

Remarks

Declared in [UITableViewDataSource]

Applies to