tableview的分割线 扩充
来源:互联网 发布:ubuntu安装firefox 编辑:程序博客网 时间:2024/05/16 02:19
在viewdidload 中插入一下代码
实现 table的代理方法
if ([self.table respondsToSelector:@selector(setSeparatorInset:)]) { [self.table setSeparatorInset:UIEdgeInsetsZero]; } if ([self.table respondsToSelector:@selector(setLayoutMargins:)]) { [self.table setLayoutMargins:UIEdgeInsetsZero]; }if ([self.table respondsToSelector:@selector(setSeparatorInset:)]) { [self.table setSeparatorInset:UIEdgeInsetsZero]; } if ([self.table respondsToSelector:@selector(setLayoutMargins:)]) { [self.table setLayoutMargins:UIEdgeInsetsZero]; }
实现 table的代理方法
- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath{ if ([cell respondsToSelector:@selector(setSeparatorInset:)]) { [cell setSeparatorInset:UIEdgeInsetsZero]; } // Prevent the cell from inheriting the Table View's margin settings if ([cell respondsToSelector:@selector(setPreservesSuperviewLayoutMargins:)]) { [cell setPreservesSuperviewLayoutMargins:NO]; } // Explictly set your cell's layout margins if ([cell respondsToSelector:@selector(setLayoutMargins:)]) { [cell setLayoutMargins:UIEdgeInsetsZero]; }}
0 0
- tableview的分割线 扩充
- tableview的分割线延长
- tableview的分割线设置
- 隐藏tableview的分割线
- tableView 的 cell 的分割线样式
- 去掉tableView上的分割线
- tableView分割线的长度设置
- tableView去掉多余的空行分割线
- iOS8 设置tableView的分割线
- iOS tableView的分割线短一节
- iOS TableView的cell分割线格式
- tableview分割线左边长短的控制
- 去除tableView多余的分割线
- 去掉tableView中多余的分割线
- 去掉TableView中多余的分割线
- tableview分割线到左边的距离
- 怎么取消Tableview的分割线
- iOS tableView cell的分割线设置
- ex和px两种字体单位的区别
- SpringMVC从Controller中获取json数据
- 一个包含Jersey库的简单Web Service以及一个发送Json数据的Java客户端
- 分割平面与空间公式
- 在Sqlite中通过Replace来实现插入和更新
- tableview的分割线 扩充
- OS实现过程之Xtensa DC_D_233L
- GFI Archiver™ 2015 SR1
- 文本文件与二进制文件区别(转)
- jdbc操作mysql数据库
- CentOS 下 beanstalkd & supervisord & laravel 后台队列环境安装配置
- How to setup memcache, in XAMPP mac osx lion
- TCP粘包问题解决
- LOCAL_JNI_SHARED_LIBRARIES