iOS: 把block 做为 @property 来使用

iOSliang 2013-12-16

typedef void(^ActionSheetCallback)(int);
@property (nonatomic, copy) ActionSheetCallback actionSheetCallback;
@property (copy, readwrite, nonatomic) void (^touchUpInsideImageButton)(id sender);

相传在,ARC和MRC下都正常.

相关推荐