ios block

//定义一个blocks变

  1. int (^myblocks2) (int a, int b) = ^(int a, int b) {
  2. int c = a + b;
  3. return c;
  4. };  
  

//向外暴露一个接口
-(void) setBark:( void (^) (Dog *thisDog, int count) ) eachBark;   
原文地址:https://www.cnblogs.com/apem/p/3967083.html