UITableViewDelegate.GetViewForHeader(UITableView, nint) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- System.System.IntPtr System.nativeint
Section index where the header will be added.
Returns
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.