iOS block用作属性封装代码

@property (copy, nonatomic) void (^actionBlock)();

 

@property (copy, nonatomic) void (^actionWithPapameterBlock)(int papameter);

 

@property (copy,nonatomic) NSString *(^actionToReturnStirng)();

- (void)selectedWithObjWithIndex:(void(^)(NSInteger index))callBack;

 

posted @ 2017-08-02 15:35  爱生活爱代码  阅读(181)  评论(0编辑  收藏  举报