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
};
感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!
最后
以上就是笨笨小蚂蚁最近收集整理的关于IOS 基础之设置 tableview 的分割线的全部内容,更多相关IOS内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复