UITableViewDataSource.TitleForHeader(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.
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.