Skip to content

Instantly share code, notes, and snippets.

@modamoda
modamoda / gist:4662395
Last active December 11, 2015 21:28
UITableView: traversing all index paths
// [self.tableView eachIndexPath^(NSIndexPath *indexpath) { ... }];
@interface UITableView (Traverse)
typedef void (^iter)(NSIndexPath *indexPath);
- (void)eachIndexPath:(iter)iterBlock;
@end
@implementation UITableView (Traverse)