How to recreate the default UIView the same as the default tableView:viewForHeaderInSection:?
- by Hoang Pham
I tried to implement the
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
to get the text label of the header in section of black color instead of the white color, but it looks so different from the default one created by the SDK, mine is so ugly.
How to recreate the UIView with exactly the same as the one from the SDK?
From Apple documentation:
Discussion
The table view uses a fixed font style for section header titles. If you want a different font style, return a custom view (for example, a UILabel object) in the delegate method tableView:viewForHeaderInSection: instead.