block使用

.h文件

typedef void (^TestBlock)();

@property (nonatomic , strong) TestBlock testBlock;

.m文件

_testBlock();

 

 

对方回调的block

   v1.testBlock= ^()  {  };

 

posted on 2017-07-06 15:44  super-Main  阅读(113)  评论(0)    收藏  举报