Permalink
Switch branches/tags
Nothing to show
Find file Copy path
c575956 Jun 6, 2013
Florian Kugler Replace edition #1 by issue #1
21 lines (12 sloc) 444 Bytes
//
// ArrayDataSource.h
// objc.io example project (issue #1)
//
#import <Foundation/Foundation.h>
typedef void (^TableViewCellConfigureBlock)(id cell, id item);
@interface ArrayDataSource : NSObject <UITableViewDataSource>
- (id)initWithItems:(NSArray *)anItems
cellIdentifier:(NSString *)aCellIdentifier
configureCellBlock:(TableViewCellConfigureBlock)aConfigureCellBlock;
- (id)itemAtIndexPath:(NSIndexPath *)indexPath;
@end