Git Product home page Git Product logo

gzbasetableview's Introduction

GZBaseTableView

最简洁的代码来实现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名字的数组

安装

CocoaPods

  1. 在 Podfile 中添加 pod 'GZBaseTableView'
  2. 执行 pod installpod update
  3. 导入 <GZBaseTableView/UIViewController+GZAdd.h>。

手动安装

  1. 下载 GZBaseTableView 文件夹内的所有内容。
  2. 将 YYModel 内的源文件添加(拖放)到你的工程。
  3. 导入 UIViewController+GZAdd.h

系统要求

该项目最低支持 iOS 8.0Xcode 7.0

许可证

GZBaseTableView 使用 MIT 许可证,详情见 LICENSE 文件。

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

gzbasetableview's People

Stargazers

 avatar gzt avatar LittleBaiMan6657 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.