How can we change the font of tableview header?

前端 未结 5 997
灰色年华
灰色年华 2021-01-30 07:51

I am using some background color for the tabelView and style is grouped. The text in the header for the sections is not clear so I need to modify the the text color so that the

5条回答
  •  再見小時候
    2021-01-30 08:34

    - (void) tableView : (UITableView*) tableView willDisplayHeaderView : (UIView*) view forSection : (NSInteger) section{
    
        [((UITableViewHeaderFooterView) *view).textLabel setFont:(UIFont...)];
    }
    

    and you can set the text label from the other table view delegate method.

提交回复
热议问题