如何禁止UITableView的section停留(去除卡住的效果)

Posted u010850094

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了如何禁止UITableView的section停留(去除卡住的效果)相关的知识,希望对你有一定的参考价值。

原帖:http://wahenzan.com/a/mdev/iOS/2014/1228/1385.html


其中:设置 tableView的 style为  UITableViewStyleGrouped,然后让

- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section 

       返回0.0000000001。  

 

        可以让 headerView ,在滚动tableView的时候,跟随着cell的内容一起滚动,不会卡住。

以上是关于如何禁止UITableView的section停留(去除卡住的效果)的主要内容,如果未能解决你的问题,请参考以下文章