How to use UITableViewHeaderFooterView?

后端 未结 9 2056
傲寒
傲寒 2020-12-23 02:12

Hi I want to use UITableHeaderFooterView in my app and i am doing this:

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional          


        
9条回答
  •  臣服心动
    2020-12-23 02:37

    1. Set delegate property of UITableView instance to reference to the controller that implements next methods:

    2. Method that returns view of section footer:

      Asks the delegate for a view object to display in the footer of the specified section of the table view. - (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section

    3. Height of view in section footer:

      Asks the delegate for the height to use for the footer of a particular section.

      - (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section

提交回复
热议问题