开发者

Object responds to selector but when I try send this selector - EXC_BAD_ACCESS

开发者 https://www.devze.com 2023-03-19 21:48 出处:网络
if ([timer respondsToSelector:@selector(userInfo)] ){ [timer performSelector:@selector(userInfo)]; } Timer is not nil and res开发者_开发问答ponds to selector. But I have EXC_BAD_ACCESS on 2 lines. H
if ([timer respondsToSelector:@selector(userInfo)] ){
    [timer performSelector:@selector(userInfo)];
}

Timer is not nil and res开发者_开发问答ponds to selector. But I have EXC_BAD_ACCESS on 2 lines. How is this possible?


Try using NSZombieEnabled. Your timer is probably pointing to portion of memory that has been released...

0

精彩评论

暂无评论...
验证码 换一张
取 消