편집

다음을 통해 공유


UITableViewDataSource.TitleForHeader(UITableView, nint) Method

Definition

Called to populate the header for the specified section.

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

Parameters

tableView
UITableView

Table view containing the section.

section
System.System.IntPtr System.nativeint

Index of the section displaying the header.

Returns

Text to display in the section header, or null if no title is required.

Attributes

Remarks

Table views use a fixed style for the section header. To customize the appearance of the header, return a custom view from GetViewForHeader(UITableView, nint) instead of implementing this method.

Applies to