您的位置:首页 > 产品设计 > UI/UE

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];
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  uitableview