Latest 0.1.3
Homepage https://github.com/hulailin/HBTableViewFrameWork
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

HBTableViewFrameWork is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'HBTableViewFrameWork', '~> 0.1.3'

快速搭建tableView

导入
数据模型继承HBTableViewCellModelClass
实现关键3个方法

  • (NSString *)cellReusable{
    return @"HBShortElvesTableViewCell";
    }

  • (CGFloat)rowHeight{
    return 54.0;
    }

  • (BOOL)isNib {
    return YES;
    }

viewcontroller中初始化

  • (HBTableViewListFrame *)tableViewList{
    if (!_tableViewList) {
    _tableViewList = [HBTableViewListFrame tableViewListFrame:self.tableView] ;
    }
    return _tableViewList;
    }

[self.tableViewList updateListWithModels:self.dataArray dataConfigBlock:^(id _Nonnull cell, id _Nonnull model) {

} didSelectRowAtIndexPath:^(UITableView * _Nonnull tableView, NSIndexPath * _Nonnull indexPath, id  _Nonnull rowData) {
    STRONG_SELF;
    HBshortElvesModel *model = [self.dataArray safeObjectAtIndex:indexPath.row];
      [HBHttpTool postSSECode:model.stockCode exchange:model.exchange stockName:model.stockName  followId:nil securityType:model.securityType subType:nil viewController:self];
}];

tableView的代理协议都不需要写了

Author

hulailin, [email protected]

License

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

Latest podspec

{
    "name": "HBTableViewFrameWork",
    "version": "0.1.3",
    "summary": "u5febu901fu642du5efau8868u683cu6846u67b6",
    "description": "u5febu901fu642du5efau8868u683cu6846u67b6",
    "homepage": "https://github.com/hulailin/HBTableViewFrameWork",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "hulailin": "[email protected]"
    },
    "source": {
        "git": "https://github.com/hulailin/HBTableViewFrameWork.git",
        "tag": "0.1.3"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "HBTableViewFrameWork/Classes/**/*"
}

Pin It on Pinterest

Share This