怎么去掉TableView cell之间的分割线的,不去掉section的边框

2025-05-08 08:01:34
推荐回答(1个)
回答1:

UIView *tempView = [[[UIView alloc] init] autorelease];
[cell setBackgroundView:tempView];
cell.backgroundColor = [UIColor clearColor];
//去掉分割线
tableView.separatorStyle = UITableViewCellSelectionStyleNone;

如果我的回答没帮助到您,请继续追问。。