How to set the height of table header in UITableView?

前端 未结 17 1361
没有蜡笔的小新
没有蜡笔的小新 2020-12-02 22:00

I have gone through Apple docs about UITableView class and delegate reference but couldn\'t find the way to set the table header height explicitly.

I set Table cell

17条回答
  •  温柔的废话
    2020-12-02 22:49

    Use table view default property :

    - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
    {
        return 35.0;
    }
    

    Thanks

提交回复
热议问题