CocoaPods trunk is moving to be read-only. Read more on the blog, there are 17 months to go.

YMTableViewSeparatorAndMargins 1.0.2

YMTableViewSeparatorAndMargins 1.0.2

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Apr 2016

Maintained by zhaoyimin.



  • By
  • 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{
//重写此方法
}