2015-10-26 66 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,它是我的是最小的正浮动值。 –

相关问题