2013-09-21 56 views
0

我已經試着給標題爲uitabelview部分,標籤contaning視圖大小不能增加超過50,在這裏我的代碼,鑑於HeaderInSection尺寸不增加

-(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section 
{ 
if(tableView.tag==20) 
{ 
    UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, tableView.frame.size.width, 55)]; 
    [view addSubview:label]; 
    [view setBackgroundColor:[UIColor colorWithRed:166/255.0 green:177/255.0 blue:186/255.0 alpha:1.0]]; 
    return view; 
} 
} 

如何添加部分像在圖像中,

enter image description here

回答

1

我認爲這將解決您的問題。

- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{ 
return 100; 
} 

享受編碼......

1

轉到表到廈門國際銀行在setction高度設置見下面的圖片enter image description here