Latest 0.1.0
License MIT
Platforms ios 6.0, requires ARC
Frameworks Foundation, UIKit

Easy way to use tableview

How To Get Started


From CocoaPods

  • CocoaPods is a dependency manager for Objective-C , which automates and simplifies the process of using 3rd-party libraries like GokoTableView in your projects . First , add the following line to your Podfile:
    pod 'GokoTableView'
  • If you want to use the latest features of GokoTableView use normal external source dependencies .
    pod 'GokoTableView', :git => ''

    This pulls from the master branch directly .

  • Then, install GokoTableView into your project :
    pod install


  • Not support now . coming soon


  • Just drag the UITableView+Goko folder into your project .


  • First
    #import <GokoTableView.h>
  • All UITableViewDelegate & UITableViewDataSource Method are supporting implement with Block now. Looks like below (Attention: delegate&datasource will bind to TableView itself automatically, do not bind to some ViewController again)
    [tableView setGoko_numberOfSectionsInTableView:^NSInteger{
    return 1;
    [tableView setGoko_numberOfRowsInSection:^NSInteger(NSInteger section) {
    return self.dataArray.count;
    [tableView setGoko_cellForRowAtIndexPath:^UITableViewCell *(NSIndexPath *indexPath) {
    DemoModel * model = self.dataArray[indexPath.row];
    NSString * cellReuseId = model.goko_cellReuseId;
    UITableViewCell * cell = [tableView dequeueReusableCellWithIdentifier:cellReuseId];;
        if (nil == cell) {
            Class cellClass = model.goko_cellClass;
            cell = [[cellClass alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellReuseId];
    return cell;
    [tableView setGoko_willDisplayCell:^(UITableViewCell *cell, NSIndexPath *indexPath) {
    DemoModel * model = self.dataArray[indexPath.row];
    [cell setGoko_bindingData:model];
  • Also you can initial tableview with below method for convince usage (see demo for more)

Initial TableView

@param frame :TableView Frame
@param tableViewstyle style
@param separatorStyle style
@return TableView

  • (instancetype)gokoTableViewWithFrame:(CGRect)frame

  • If you initial a TableView with above method, now you can easily insert or delete rows with
    Insert Rows without attention to dataSource

@param rowDatas : Rows bingding data
@param indexPaths : indexPath
@param rowAnimation : add animation

  • (void)gokoInsertRows:(NSArray<NSObject > )rowDatas
    atIndexPaths:(NSArray<NSIndexPath > )indexPaths

Delete Rows without attention to dataSource

@param indexPaths : indexPath
@param animation : delete animation

  • (void)gokoDeleteRowsAtIndexPaths:(NSArray<NSIndexPath > )indexPaths

    ## License
    `GokoTableView` is released under the MIT license. See LICENSE for details.

Latest podspec

    "name": "GokoTableView",
    "version": "0.1.0",
    "summary": "A block supported UITableView",
    "description": "It is a block supported UITableView, which implement by Objective-C.",
    "homepage": "",
    "license": "MIT",
    "authors": {
        "Goko": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.1.0"
    "platforms": {
        "ios": "6.0"
    "requires_arc": true,
    "source_files": "GokoTableView/UITableView+Goko/*",
    "frameworks": [

Pin It on Pinterest

Share This