swift3.0 tableviewcell分割线显示不全解决方案
来源:互联网 发布:java基础笔试题 编辑:程序博客网 时间:2024/05/12 21:56
在viewDidLoad()添加一下代码
if tableView.responds(to:#selector(setter: UITableViewCell.separatorInset)) { tableView.separatorInset = UIEdgeInsets.zero} if tableView.responds(to:#selector(setter: UIView.layoutMargins)) { tableView.layoutMargins = UIEdgeInsets.zero}
tableview实现多以下代理
func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) { if cell.responds(to:#selector(setter: UIView.layoutMargins)) { cell.layoutMargins = UIEdgeInsets.zero } if cell.responds(to: #selector(setter: UITableViewCell.separatorInset)) { cell.separatorInset = UIEdgeInsets.zero } }
0 0
- swift3.0 tableviewcell分割线显示不全解决方案
- [绍棠_Swift] Swift3.0中tableviewcell分割线显示不全解决方案
- tableview分割线显示不全
- iOS TableViewCell 底下线显示不全解决方案
- TableViewCell自定义分割线
- TableViewCell自定义分割线
- TableViewCell自定义分割线
- tableviewcell的分割线
- tableViewCell分割线
- TableViewCell 分割线
- TableViewCell的分割线显示不完全处理方法
- UITableView的分割线不显示或者显示不全
- Swift tableview 单元格分割线显示不全的解决方法
- swift cell 分割线 显示不全 自由控制长度
- iOS TableViewCell自定义分割线
- TableViewCell分割线的设置
- tableViewCell自定义分割线效果
- tableViewCell分割线补全
- Android中的模式:Builder模式的优点赏析
- 383. Ransom Note
- Linux下命令学习日志
- Mysql忘记root密码及密码修改
- android的getView()、getItem()、notifyDataSetChanged()函数
- swift3.0 tableviewcell分割线显示不全解决方案
- java.lang.reflect.InvocationTargetException java.lang.NoClassDefFoundError:
- linux gcc
- margin在文档流和浮动中的区别
- 如何让新员工快速成长
- HDU 1109
- angular的$watch 函数
- glib 线程池 thread_pool
- java office文档转pdf