UITableViewDelegate.GetViewForHeader(UITableView, nint) Method

Definition

Returns a view object to display at the start of the given section.

[Foundation.Export("tableView:viewForHeaderInSection:")]
public virtual UIKit.UIView GetViewForHeader (UIKit.UITableView tableView, nint section);
abstract member GetViewForHeader : UIKit.UITableView * nint -> UIKit.UIView
override this.GetViewForHeader : UIKit.UITableView * nint -> UIKit.UIView

Parameters

tableView
UITableView

Table view containing the section.

section
nint

Section index where the header will be added.

Returns

UIView

A view to be displayed at the start of the given section.

Attributes

Remarks

Can either be a UILabel, UIImageView or a custom view. This method requires GetHeightForHeader(UITableView, nint) to be implemented as well.

Applies to