How to recreate the default UIView the same as the default tableView:viewForHeaderInSection:?
Posted
by Hoang Pham
on Stack Overflow
See other posts from Stack Overflow
or by Hoang Pham
Published on 2010-05-24T16:09:02Z
Indexed on
2010/05/24
16:11 UTC
Read the original article
Hit count: 420
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.
© Stack Overflow or respective owner