You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
zjutwhw
changed the title
__block 标识的变量,在Block中,dispose_helper发生Thread 1: EXC_BAD_ACCESS (code=1, address=0x10)
__block variables have been capture by the block,but 'dispose_helper' error
Jun 13, 2017
__block variables have been capture by the block,but 'dispose_helper' error , Demo:
__weak CDItem *item = [CDItem new];
__block NSInteger index = 10;
void (^callblock)(NSString *name) = ^(NSString *name){
item.name = name;
index = 20;
};
callblock(@"jack");
void *block = (__bridge void *)callblock;
NSIndexSet *set = GetBlockStrongLayout(block); // FBBlockStrongLayout中_GetBlockStrongLayout(...)实现
error:
dispose_helper -- Thread 1: EXC_BAD_ACCESS (code=1, address=0x10)
The text was updated successfully, but these errors were encountered: