UIKit.UITableViewSource.GetViewForHeader Method
Returns a view object to display at the start of the given section.

Syntax

[Foundation.Export("tableView:viewForHeaderInSection:")]
public virtual UIView GetViewForHeader (UITableView tableView, nint section)

Parameters

tableView
Table view containing the section.
section
Section index where the header will be added.

Returns

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

Remarks

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

Declared in [UITableViewDelegate]

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0