BRTablewTemplate 0.1.1× 测试已测试✗ 语言语言 Obj-CObjective C许可 MIT 发布最新发布2016年12月由 burning-git 维护。安装指南×BRTablewTemplate 安装指南您想向 Podfile 中添加类似于以下的内容:`pod 'BRTablewTemplate', '~> 0.1'`target 'MyApp' do pod 'BRTablewTemplate', '~> 0.1' end然后在终端内部或从 CocoaPods.app 运行 pod install或者为了测试运行,请运行以下命令:pod try BRTablewTemplate查看 PodspecGitHub 仓库CocoaPods.org 页面BRTablewTemplate 0.1.1由gitBurninggithub.com/burning-gitGitHub 仓库 BR_TablewTemplate tablew的模板。减少系统代理方法重复率 前言 目前处理开发阶段 使用场景 系统的tablew 是开发中常用的 UI 控件,但是日常使用中,使用它的时候,需要实现很多代理,如果多个地方使用了tablew,那么代理就造成了重复率比较高,因此诞生了BR_TablewTemplate (目前实现) 后续希望实现 网络层+ TablewTemplate 使用方式 ** 去掉了代理,那么意味着 需要 block 。 因此 BR_TablewTemplate 实现方式也是全部是 block,需要注意 retain circle 根据需求选择初始化方法 自定义高度的回调 (void)BR_addRowHeightBlcok:(BR_HeightForRowAtIndexPathBlcok)rowHeight; 点击事件的回调 (void)BR_addDidSelectRowAtIndexPathBlcok:(BR_DidSelectRowAtIndexPathBlcok)selectedBlcok; 删除 cell 的回调,系统自带的方式删除 (void)BR_addDeleteCellIndexPathBlock:(BR_CellCommitEditingIndexPathBlock)deleteBlcok; 更新 数据源 (ps:如果带有 删除功能,最好传引用,不要copy) (void)BR_updateDataArrayBlock:(BR_GetTablewDataArrayBlcok)dataBlock; 替换tablew,用于在已有的tablew 上面做处理 (void)BR_ReplaceTablew:(UITableView *)tablew; ** pod 引入 (如果没有搜索到 还未上传) pod 'BRTablewTemplate', '~> 0.1.0' 使用实例