Asks the data source for the title of the footer of the specified section of the table view.
SDKs
- iOS 2.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- UIKit
Declaration
- (NSString *)tableView:(UITable View *)tableView titleForFooterInSection:(NSInteger)section;
Parameters
tableViewThe table-view object asking for the title.
sectionAn index number identifying a section of
table.View
Return Value
A string to use as the title of the section footer. If you return nil , the section will have no title.
Discussion
The table view uses a fixed font style for section footer titles. If you want a different font style, return a custom view (for example, a UILabel object) in the delegate method table instead.
If you do not implement this method or the table method, the table does not display footers for sections. If you implement both methods, the table method takes priority.