TableView section 頭標(biāo)題默認大寫的解決

Simulator Screen Shot 2017年6月13日 16.21.40.png
-(NSString*)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section{
JYSetterGroup *group = self.groups[section];
return group.headTitle;
}
增加方法-(UIView *) tableView:(UITableView *)tableView viewForHeaderInSection:
-(UIView *) tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
{
UILabel *headerLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, tableView.bounds.size.width, 20)];
//注意這里調(diào)整不了高度
if (section == 0) {
headerLabel.text = @"小寫a";
}
else {
headerLabel.text = @"headBBBBBBB";
}
return headerLabel;
}
-(CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section{
return 10;
}
-(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{
return 27;}