JLModularityKit
模块化可配置TableView,可实现表单页面负责商户页面等。
截图
使用
实现一个模块
@interface JLFromNameModule : JLBaseModule
@end
.....
@implementation JLFromNameModule
- (void)onStart
{
[super onStart];
self.cell.textLabel.text = @"酒店名称";
self.cell.detailTextLabel.text = @"哇哈哈大酒店";
}
@end
使用并配置模块
@interface JLFromViewController ()
.....
//设置模块
- (NSArray *)setupModuleNames
{
return @[@[[JLFromNameModule class],[JLFromCountModule class]],
@[[JLFromTimeModule class],[JLFromCustomNameModule class],[JLFromCustomPhoneModule class]]];
}
详细使用请看以下三个类
- JLBaseModule
- JLModuleViewController
- JLModuleTableViewController
Installation
JLModularityKit is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "JLModularityKit"
Author
License
JLModularityKit is available under the MIT license. See the LICENSE file for more info.