下面的代码是用来设置tableView头标题,默认的text是AlignmentLeft。怎么设置为AlignmentCenter?
- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section {
if(section==0){
return NSLocalizedString(@"more_titlehead_one", nil);
}else if (section==1){
return NSLocalizedString(@"more_titlehead_two", nil);
}else{
return NSLocalizedString(@"more_titlehead_three", nil);
}
}