Reputation: 5505
The syntax for declaring a property referring to a block is:
typedef void (^voidBlock)();
@property (nonatomic, copy) voidBlock callback;
...
@synthesize callback;
How could this be done without the typedef?
Upvotes: 9
Views: 2459