Latest 1.0.1
Homepage https://github.com/wubingwell/WBTableView
License MIT
Platforms ios 7.0, requires ARC
Frameworks Foundation, UIKit
Authors

A tableview has only one row and Multi-column allows horizontal scrolling

usage

1、import head file

#import "WBTableView.h"

2、create instance of WBTableView

@implementation ViewController
{
    WBTableView * _tableView;
}
...
...
_tableView = [[WBTableView alloc] init];
_tableView.delegate = self;
_tableView.dataSource = self;

3、WBTableViewDataSource
the number of columns

- (NSInteger)numberOfItemsInTableView:(WBTableView *)tableView;

the width of columns

- (CGFloat)tableView:(WBTableView *)tableView widthForItemAtIndex:(NSInteger)index;

the content of column

- (WBTableViewCell *)tableView:(WBTableView *)tableView cellForItemAtIndex:(NSInteger)index

4、WBTableViewDelegate
response of selecting a column

- (void)tableView:(WBTableView *)tableView didSelectItemAtIndex:(NSInteger)index;

Latest podspec

{
    "name": "WBTableView",
    "version": "1.0.1",
    "summary": "A horizontal tableview used on iOS.",
    "description": "                       A tableview has only one row and Multi-column allows horizontal scrolling.n",
    "homepage": "https://github.com/wubingwell/WBTableView",
    "license": "MIT",
    "authors": {
        "wubing": "[email protected]"
    },
    "source": {
        "git": "https://github.com/wubingwell/WBTableView.git",
        "tag": "1.0.1"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "WBTableView/*",
    "frameworks": [
        "Foundation",
        "UIKit"
    ]
}

Pin It on Pinterest

Share This