改成如下即可:
NSArray *arr = @[^{NSLog(@"block0 :%d",val);},
^{NSLog(@"block1 :%d",val);},
^{NSLog(@"block2 :%d",val);},
^{NSLog(@"block3 :%d",val);}];
改成如下即可:
NSArray *arr = @[^{NSLog(@"block0 :%d",val);},
^{NSLog(@"block1 :%d",val);},
^{NSLog(@"block2 :%d",val);},
^{NSLog(@"block3 :%d",val);}];