Latest 0.1.0
Homepage https://github.com/JulianSong/JLModularityKit
License MIT
Platforms ios 8.0
Frameworks UIKit
Authors

模块化可配置TableView,可实现表单页面负责商户页面等。

CI Status
Version
License
Platform

截图

JLModularityKit
JLModularityKit

使用

实现一个模块

@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

[email protected]

License

JLModularityKit is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "JLModularityKit",
    "version": "0.1.0",
    "summary": "IOS 7 JLModularityKit.",
    "description": "IOS 7 JLModularityKit modularity and configable tableview.",
    "homepage": "https://github.com/JulianSong/JLModularityKit",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "junliang.song": "[email protected]"
    },
    "source": {
        "git": "https://github.com/JulianSong/JLModularityKit.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "JLModularityKit/Classes/*",
    "public_header_files": "JLModularityKit/Classes/*.h",
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This