In Objective-C, I know that blocks are considered objects, so I was wondering if it was possible to store them in an array. This begs the question, are blocks first class o
Yes, blocks are indeed objects, and you can put them in arrays:
NSMutableArray *arr = [NSMutableArray new]; [arr addObject:^(){NSLog(@"my block");}]; void (^ myblock)() = [arr objectAtIndex:0]; myblock();
this will put the "my block" in the console.