YMTableViewSeparatorAndMargins 1.0.2

YMTableViewSeparatorAndMargins 1.0.2

测试已测试
语言语言 Obj-CObjective C
许可证 MIT
发布最后发布2016年4月

zhaoyimin 维护。



  • zhaoyimin
  • 一行代码清除cell默认的左边距和tableView的左边距
  • 框架特点:简单实用

GitHub:iosdeveloperSVIP

操作目录


安装使用

手动导入文件

  • 将 YMTableViewSeparatorAndMargins 文件夹中的所有源代码拖入项目中
  • 【导入主头文件:#import "UIViewController+YMSeparatorAndMargins.h”

[self ym_setSeparatorAndMarginsZeroWithTableView:self.tableView];

设置 tableView 左右边距

[self ym_setSeparatorAndMarginsWithTableView:self.tableView insets:UIEdgeInsetsMake(0, 10, 0, 10)];

设置显示前的 cell

-(void)ym_tableView:(UITableView *)tableView willDisplayCell:
(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath{
//重写此方法
}