Manuel Meyer

1pod
By implementing section datasources and data fetcher protocol
it becomes easy to populate table views and collection views.
```objc
OFASectionPopulator *sectionPopulator = [[OFAReorderSectionPopulator alloc] initWithParentView:self.tableView
dataProvider:[[ExampleDataProvider alloc] init]
cellIdentifier:^NSString * (id obj, NSIndexPath *indexPath){ return @"Section2"; }
cellConfigurator:^(NSNumber *obj, UITableViewCell *cell, NSIndexPath *indexPath)
{ cell.textLabel.text = [NSString stringWithFormat:@"@", @([obj doubleValue] * [obj doubleValue])); cell.textLabel.backgroundColor = [UIColor clearColor]; } reorderCallBack:^(id sourceObj, id destinationObj, NSIndexPath *sourceIndexpath, NSIndexPath *destinationIndexPath) { ; }]; sectionPopulator.sectionIndexTitle = ^(NSUInteger section){ return @"s"; };
self.populator = [[OFAViewPopulator alloc] initWithSectionPopulators:@[sectionPopulator]];
``
许可: MIT