2015-10-26 67 views

回答

-1

您可以使用此代碼頭拆下,使第一單元之間更小的空間後,

- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section 
{ 
    return 0.005f;// set this according to that you want... 
} 

和你也可以設置頁腳如下。

- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section 
{ 
    return 3.5f;// also set this one as you want ... 
} 
+0

代替使用0.005f,你也可以使用FLT_EPSILON,它是我的是最小的正浮動值。 –

相關問題