设置 tableView 的 Cell 的间隔先
tableview 的一个属性 separatorStyle 可以设置 cell 之间的间隔线样式(三种)
1
2
3
4
5
|
typedef NS_ENUM(NSInteger, UITableViewCellSeparatorStyle) {
UITableViewCellSeparatorStyleNone,
UITableViewCellSeparatorStyleSingleLine,
UITableViewCellSeparatorStyleSingleLineEtched // This separator style is only supported for grouped style table views currently
} __TVOS_PROHIBITED;
|
默认样式有一条线
1
|
tableView.separatorStyle = UITableViewCellSeparatorStyleSingleLine;
|
设置为这个值就可以去除间隔线
1
|
tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
|