1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
@implementation SomeClass - (void)someMethod { enumerateItems( ^(NSInteger section) { }); } - (void)someOtherMethod { items.enumerateItems( ^(NSInteger section, NSInteger index, id<NSObject> object, BOOL *stop) { enumerator(index, object, TypeInsert); }, nil, some_param ); } @end