I tried to implement
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
to get the title text label in the section of black instead of white, but it looks so different from the standard created by the SDK, mine is so ugly.
How to recreate a UIView in the same way as with the SDK?
From the Apple documentation:
Discussion
The table view uses a fixed font style for section heading headers. If you need a different font style, return a custom view (for example, a UILabel object) in the delegate method tableView: viewForHeaderInSection: instead.
objective-c iphone uitableview
Hoang pham
source share