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

GZBaseTableView 0.0.5

GZBaseTableView 0.0.5

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Mar 2017

Maintained by 郭振涛.



  • By
  • 郭振涛

最简洁的代码来实现basa的TableView。

简单的介绍一下

只需要在UIViewController的子类中导入 "UIViewController+GZAdd.h" 头文件既可以一句话生成tableView

[self addTableView:self.view.bounds dicCellModel:@{@[model]:CELLSTR(UITableViewCell)}];

这是一个自定义一个cell的TableView @{@[model]:CELLSTR(UITableViewCell)}

@[model] ->指的是存放数据的数组,数组的icon代表cell的个数

CELLSTR(UITableViewCell) -> 自定义cell的类名(支持Nib)

[self addTableView:self.view.bounds multipleCellOnModel:@{arr:array}];

这是一个自定义多个cell的TableView

arr -> 指存放数组(Model)的数组

array -> 存放cell名字的数组

这只是一个Demo具体使用请抽离UIViewController+GZAdd类