Latest 1.0.1
Homepage https://github.com/tpctt/TableViewWithBlock
License MIT
Platforms ios 6.0, requires ARC
Frameworks Foundation, UIKit
Authors

TableViewWithBlock 使用 block 方式设置 table 的 datasource / delegate的代码

引入

pod 'TableViewWithBlock'

使用

-(void)initTableViewDataSourceAndDelegate:(UITableViewNumberOfRowsInSectionBlock)numOfRowsBlock
                 setCellForIndexPathBlock:(UITableViewCellForRowAtIndexPathBlock)cellForIndexPathBlock
           setTableViewWillDisplayCellBlock:(UITableViewWillDisplayCellBlock)tableViewWillDisplayCellBlock
                     setDidSelectRowBlock:(UITableViewDidSelectRowAtIndexPathBlock)didSelectRowBlock;

///不带setTableViewWillDisplayCellBlock
-(void)initTableViewDataSourceAndDelegate:(UITableViewNumberOfRowsInSectionBlock)numOfRowsBlock
                 setCellForIndexPathBlock:(UITableViewCellForRowAtIndexPathBlock)cellForIndexPathBlock
                     setDidSelectRowBlock:(UITableViewDidSelectRowAtIndexPathBlock)didSelectRowBlock;

Latest podspec

{
    "name": "TableViewWithBlock",
    "version": "1.0.1",
    "summary": "u4f7fu7528 block u4f7fu7528 UITableView",
    "homepage": "https://github.com/tpctt/TableViewWithBlock",
    "social_media_url": "https://github.com/tpctt/TableViewWithBlock",
    "platforms": {
        "ios": "6.0"
    },
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        " tim": "[email protected]"
    },
    "source": {
        "git": "https://github.com/tpctt/TableViewWithBlock.git",
        "tag": "1.0.1"
    },
    "requires_arc": true,
    "frameworks": [
        "Foundation",
        "UIKit"
    ],
    "subspecs": [
        {
            "name": "TableViewWithBlock",
            "source_files": "TableViewWithBlock/**/*.{h,m,mm}",
            "requires_arc": true
        }
    ]
}

Pin It on Pinterest

Share This