Implementation of generic UITableViewDataSource that can be used to reduce the amount of code in UIViewControllers.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
ArrayDataSourceExample
ROArrayDataSource
.gitignore
LICENSE
README.md

README.md

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;
}