Latest0.1.0
Homepagehttps://github.com/raphaeloliveira/ArrayDataSource
LicenseMIT
Platformsios , requires ARC
Authors

ArrayDataSource

Implementation of a generic UITableViewDataSource that can be used to reduce the amount of code in UIViewControllers.

Inspired by the great article lighter-view-controllers

How to install it?

Just drag and drop the ROArrayDataSource folder on your project or use cocoapods

How to use it?

Just set an instance of ROArrayDataSource as the dataSource of the table view.

- (void)setupTableViewDataSource
{
    self.dataSource = [[ROArrayDataSource alloc] initWithItems:self.data cellIdentifier:cellIdentifier configureCellBlock:^(CustomCell *cell, NSObject *object) {
        cell.label.text = [object description];
    }];
    self.tableView.dataSource = self.dataSource;
}

Latest podspec

{
    "name": "ROArrayDataSource",
    "version": "0.1.0",
    "summary": "Implementation of a generic UITableViewDataSource that can be used to reduce the amount of code in UIViewControllers",
    "description": "Implementation of a generic UITableViewDataSource that can be used to reduce the amount of code in UIViewControllers.",
    "homepage": "https://github.com/raphaeloliveira/ArrayDataSource",
    "license": "MIT",
    "authors": {
        "Raphael Oliveira": "[email protected]"
    },
    "platforms": {
        "ios": null
    },
    "source": {
        "git": "https://github.com/raphaeloliveira/ArrayDataSource.git",
        "tag": "0.1.0"
    },
    "source_files": "ROArrayDataSource/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This