1
我是个在我的代码使用CGRectMake相同的X位置,但它不影响下面的代码节头始终神韵:到
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section{
if(section==1){
UILabel *v=[[UILabel alloc]initWithFrame:CGRectMake(100, 0, 150, 10)];
[v setBackgroundColor:[UIColor clearColor]];
[v setText:@"Apartments that matches your search ..."];
[v setTextColor:[UIColor whiteColor]];
[v setFont:[UIFont systemFontOfSize:13.0f]];
return v;
}
return NULL;
}
我想要的UILabel在TableView中的中心,请大家帮忙