UITableView段落模式 — cell的边框
2016-03-18 15:54
417 查看
我们经常会用段落模式加载一些东西,这时候,边框就比较碍眼了,我们需要去掉它,
1、 cell.backgroundView = [[UIView alloc] initWithFrame:CGRectZero];
2、- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath {
[cell setBackgroundColor:[UIColor clearColor]];
cell.textLabel.backgroundColor = [UIColor clearColor];
cell.detailTextLabel.backgroundColor = [UIColor clearColor];
}
1、 cell.backgroundView = [[UIView alloc] initWithFrame:CGRectZero];
2、- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath {
[cell setBackgroundColor:[UIColor clearColor]];
cell.textLabel.backgroundColor = [UIColor clearColor];
cell.detailTextLabel.backgroundColor = [UIColor clearColor];
}
相关文章推荐
- iOS应用中UITableView左滑自定义选项及批量删除的实现
- ios8 UITableView设置 setSeparatorInset UIEdgeInsetsZero不起作用的解决办法(去掉15px空白间距)
- 讲解iOS开发中UITableView列表设计的基本要点
- iOS应用开发中UITableView的分割线的一些设置技巧
- 实例讲解iOS应用开发中使用UITableView创建自定义表格
- iOS App中UITableView左滑出现删除按钮及其cell的重用
- iOS开发中UITableview控件的基本使用及性能优化方法
- 详解iOS开发中UItableview控件的数据刷新功能的实现
- UITableView 实现汽车品牌(demo)
- IOS 9 UITableView整理
- UITableView 基本使用方法总结
- UITableView一些易混属性和方法
- UITableView的详细讲解
- (转)UITableViewController重要配置方法和Delegate
- UITableView详细用法,UITableView指南,UITableView详细教程
- ios隐藏uitableview下面多余的tableview的线条
- 定制UITableViewCell的事件响应处理
- iOS UITableView相关
- ios关于tableView的重用
- UITableView Plain下的section取消顶部粘连