i think you are trying to decrement the variable count
which is not defined as __block
. You have to declare each variable you want to change inside a block with __block
, for example __block int count;
__block
1. 如果在block里面改变变量的值 ,需要使用此修饰符修改变量;否则报错如下:
variable is not assignable missing block
解决办法:
|
|