MNStaticTableViewController 1.0.0

MNStaticTableViewController 1.0.0

测试已测试
Lang语言 Obj-CObjective C
许可证 BSD
发布最后发布2014 年 12 月

Marc Nijdam 维护。



  • Marc Nijdam

MNStaticTableViewController 是一个 utility UITableViewController 子类,旨在使构建静态分区列表(如菜单或侧面板)变得更容易。

安装

使用 CocoaPods

pod 'MNStaticTableViewController', :tag => '<repo-tag>'

其中 repo-tag 是您想要依赖的项目标记版本。

如果您想直接依赖此仓库

pod 'MNStaticTableViewController', :git => 'https://github.com/madninja/MNStaticTableViewController.git'

用法

创建一个 MNStaticTableViewController 实例,并向它传一个 'MNStaticTableViewProviders' 子类实例的数组,该数组为每个分区提供 cell 和 action。

要将菜单实现组合在一起,您可以将所有这些封装在 MNStaticTableViewController 的单个子类中,如示例项目中所示。

请参阅示例项目了解如何为每个分区创建提供者

Demo Project

许可证

BSD 许可。请参阅 LICENSE 文件以获取详细信息。