Sdílet prostřednictvím


UITableViewController.GetViewForHeader(UITableView, IntPtr) Method

Definition

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

[Foundation.Export("tableView:viewForHeaderInSection:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual UIKit.UIView GetViewForHeader(UIKit.UITableView tableView, IntPtr section);
[<Foundation.Export("tableView:viewForHeaderInSection:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetViewForHeader : UIKit.UITableView * nativeint -> UIKit.UIView
override this.GetViewForHeader : 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.

Implements

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