Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Syntax for Objective-C property of block-type (without typedef)

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?

like image 818
Robert Altman Avatar asked Dec 02 '11 18:12

Robert Altman


1 Answers

@property (nonatomic, copy) void (^callback)();
like image 140
David V Avatar answered Sep 18 '22 19:09

David V



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!