AEFDataSource 0.4.0

AEFDataSource 0.4.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Mar 2015

Maintained by Alex Fish.



  • By
  • Alex Fish

Reusable data source models for your iOS application, inspired by the lighter view controllers movement.

Usage

To run the example project; clone the repo, and run pod install then open AEFDataSource.xcworkspace.

Data sources

AEFTableViewDataSource

A data source for a UITableView that supports an array of items or a multidimensional array of items for section support.

NSArray *items = @[@[@"Row", @"Row"], @[@"Row", @"Row"]];
self.dataSource = [[AEFTableViewDataSource alloc] initWithItems:items 
                                                 cellIdentifier:@"Cell" 
                                             configureCellBlock:^(UITableViewCell *cell, id item, NSIndexPath *indexPath) {
    cell.textLabel.text = [NSString stringWithFormat:@"%@_%i", item, indexPath.row];
}];

self.tableView.dataSource = self.dataSource;

See the example application for more in depth usage examples.

Installation

Author

Alex Fish, [email protected]

License

AEFDataSource is available under the MIT license. See the LICENSE file for more info.