ElegantTableView 0.0.4

ElegantTableView 0.0.4

monetking 维护。



  • houmanager

CocoaPods

ElegantTableView

优雅地创建TableView

Cocoapods

a. 将 ElegantTableView 添加到您的 Podfile 中。

	pod 'ElegantTableView'

b. 运行

  	pod install 

Carthage

a. 将 ElegantTableView 添加到您的 Cartfile。

    github "stackhou/ElegantTableView"

b. 运行

    carthage update

c. 按照以下标准 Carthage 安装指南添加 ElegantTableView 到您的项目中。

使用

    NSArray *dataSources = @[@"", @"", @"", @"1", @"2", @"3"];
    UITableView *tableView = [[ElegantTableViewGenerator shareInstance] createWithFrame:self.view.bounds titles:dataSources subTitles:nil rowHeight:44 didSelectRowBlock:^(UITableView *tableView, NSIndexPath *indexPath) {
        NSLog(@"点击TableView-->%ld", (long)indexPath.row);
    } didScrollBlock:^(UIScrollView *tableView, CGPoint contentOffset) {
        NSLog(@"滚动TableView-->%@", NSStringFromCGPoint(contentOffset));
    }];
    
    [self.view addSubview:tableView];