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?
@property (nonatomic, copy) void (^callback)();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With