标签:uitableview ios tableview黑线条
这里采用分组形式,底色可用图片覆盖,设置为cell(是一个view)的子视图,并把cell‘的颜色设置为底色
当UITableView的cell没有满屏显示时,就会出现黑线条,我们只需在初始化时,加上下列语句即可
self.tableView.tableFooterView = [[UIView alloc] init];
并且把foot的view颜色显示为底色,设置为
- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section
{
if (section > _RechargeRecords.count - 2 && self.view.frame.size.height > _RechargeRecords.count * 160)
{
return self.view.frame.size.height - _RechargeRecords.count * 160;
}
else
{
return 0;
}
}
版权声明:本文为博主原创文章,未经博主允许不得转载。
标签:uitableview ios tableview黑线条
原文地址:http://blog.csdn.net/u010070526/article/details/46922617