时间:2020-12-30 14:19:28 | 栏目:iOS代码 | 点击:次
ios tableView 设置 tableview 的分割线
实现效果图:

[tableview setSeparatorColor:[UIColor blueColor]]; //设置分割线为蓝色
隐藏UITableViewCell的分隔线
[self.myTableView setSeparatorStyle:UITableViewCellSeparatorStyleNone];
UITableViewCellSeparatorStyle有如下几种
typedef NS_ENUM(NSInteger, UITableViewCellSeparatorStyle) {
UITableViewCellSeparatorStyleNone,
UITableViewCellSeparatorStyleSingleLine,
UITableViewCellSeparatorStyleSingleLineEtched // This separator style is only supported for grouped style table views currently
};
感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!