Mon 07/26/16
1) How to change section header's titleLabel attributes.
From iOS 7.0 instead of using viewForHeaderInIndexPath... you can use
-(void)tableView:(UITableView *)tableView willDisplayHeaderView:(UIView *)view forSection:(NSInteger)section
{
UITableViewHeaderFooterView *header = (UITableViewHeaderFooterView *)view;
header.textLabel.font = [UIFont fontWithName:@"Roboto" size:20];
header.textLabel.textAlignment = NSTextAlignmentCenter;
}
{
UITableViewHeaderFooterView *header = (UITableViewHeaderFooterView *)view;
header.textLabel.font = [UIFont fontWithName:@"Roboto" size:20];
header.textLabel.textAlignment = NSTextAlignmentCenter;
}
Комментарии
Отправить комментарий