测试已测试 | ✗ |
Lang语言 | SwiftSwift |
许可协议 | MIT |
发布上次发布 | 2016年6月 |
SPM支持 SPM | ✗ |
Maintained by Nick A.
要运行示例项目,克隆 repo,然后首先从 Example 目录运行 pod install
。
这是一个使用简便的库 - 只需将您的UITableView的course和dataSource设置到NAExpandableTableController对象,并实现NAExpandableTableViewDataSource & NAExpandableTableViewDelegate协议。
self.expandableController = NAExpandableTableController(dataSource: self, delegate: self)
self.tableView.dataSource = self.expandableController
self.tableView.delegate = self.expandableController
成功了!
保留expandableController对象引用对您的UITableView的dataSource & delegate来说很重要,否则一且它超出作用域,您的tableView将会为空。
NAExpandableTableController可以通过CocoaPods获得。要安装它,只需将以下行添加到您的Podfile中
pod "NAExpandableTableController"
Nick A, narciero
NAExpandableTableController可在MIT许可协议下使用。有关更多信息,请参阅LICENSE文件。