Share via


UITableViewDelegate_Extensions.GetViewForHeader Method

Definition

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

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static UIKit.UIView GetViewForHeader(this UIKit.IUITableViewDelegate This, UIKit.UITableView tableView, IntPtr section);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member GetViewForHeader : UIKit.IUITableViewDelegate * UIKit.UITableView * nativeint -> UIKit.UIView

Parameters

tableView
UITableView

Table view containing the section.

section
IntPtr

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, IntPtr) to be implemented as well.

Applies to