3 回答
![?](http://img1.sycdn.imooc.com/54584c5e0001491102200220-100-100.jpg)
TA贡献1796条经验 获得超7个赞
我现在的做法是
在-
(CGFloat)tableView:(UITableView *)tableView
heightForHeaderInSection:(NSInteger)section中返回0,
在-
(void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell
forRowAtIndexPath:(NSIndexPath *)indexPath 中
[cell
removeFromSuperview]
![?](http://img1.sycdn.imooc.com/533e4d660001312002000200-100-100.jpg)
TA贡献1820条经验 获得超9个赞
解决了,先把tableView.sectionHeaderHeight = 0;tableView.sectionFooterHeight = 0;再根据需要实现:- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section就可以控制group模式隐藏section了。
![?](http://img1.sycdn.imooc.com/5458683f00017bab02200220-100-100.jpg)
TA贡献2019条经验 获得超9个赞
UITableview中隐藏静态section的方法
_paymentCell.hidden = YES; self.tableView.contentInset = UIEdgeInsetsMake(-90, 0, 0, 0);
- 3 回答
- 0 关注
- 962 浏览
添加回答
举报