UITableViewCell与cell之间的那条线
2020-02-16 20:22
393 查看
cell与cell之间的那条线,默认是gryColor颜色,改变方式有:
1.属性就是改line的颜色
@property(nonatomic,retain) UIColor *separatorColor; // 属性就是改line的颜色 self.tableView.separatorColor = [UIColor blackColor];
2.属性改变line的样式
// 属性 @property(nonatomic) UITableViewCellSeparatorStyle separatorStyle; // 分割线样式默认UITableViewCellSeparatorStyleSingleLine self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
如果想自定义这条线,比如view、图片等
必须让separatorStyle = UITableViewCellSeparatorStyleNone;注意:这是UITableView的属性
转载于:https://www.cnblogs.com/bachl/p/4792161.html
- 点赞
- 收藏
- 分享
- 文章举报
![](https://g.csdnimg.cn/static/user-reg-year/1x/4.png)
相关文章推荐
- Sky TV ruling begs the question 'Why can't we let British companies succeed?'
- 认识arduino入门必备知识
- iOS-UIButton简单的使用介绍
- UITableView个人笔记
- Arduino超声波传感器测量距离
- hardware-fireduino
- arduino于RFID
- arduino与RF
- XLMHttpRequest对象的status属性,readyState属性以及onreadystatechange事件
- Aion Quest: Go Back into the Frillneck Habitat
- ValueError: Invalid configuration: - Deprecated option 'domaincontroller': use 'http_authenticator
- 深度学习入门二分类例子中ValueError: Object arrays cannot be loaded when allow_pickle=False
- [转]flash builder 4 编译器参数
- STL stack和queue的用法
- 【经验】CruiseControl.Net的安装、配置和遇到的一些问题
- 9 子线程更新UI
- 移动UI设计学习总结
- npm install 在 loadRequestedDeps 步骤卡死解决方法
- 【数据库】liquibase: Waiting for changelog lock....
- UEFI,GPT和LVM的那些是是非非