界面
@interface MyClass
@property (nonatomic, copy) SomeBlock someBlock;
@end
执行
- (void)myMethodWithBlock:(SomeBlock)theBlock
{
self.someBlock = theBlock;
[someHelper doSomethingWithCompletionBlock:^(){
self.someBlock(arg1);
}
}
哪里self.someBlock(arg1)
给我EXEC_BAD_ACCESS
,我确实定义someBlock
了被复制。
可能是什么问题?