UITableView当数据很少的时候,去掉多余的cell分割线

转自:http://www.cnblogs.com/bucengyongyou/archive/2012/10/15/2723814.html

在tableView初始化的时候  

 UIView *v = [[UIViewalloc] initWithFrame:CGRectZero];  

    [self.myTableView setTableFooterView:v];  

就可以了

原文地址:https://www.cnblogs.com/wangpei/p/4381994.html