Crash on download asynchronous images in iphone de

2019-08-20 04:39发布

I am using this link for downloading asynchronously images and display them onto my table view and at the same time i use same asynchronous class onto my next view but when dealloc is called of last time used asynchronous class then my application is crash. Someone please help me on that, thanks in advance.

1条回答
一夜七次
2楼-- · 2019-08-20 05:10

You sent a method to a released object. You can find it out by yourself.
Please turn on malloc stack and zombie for your scheme in XCode:

Product -> Edit Scheme -> Diagnostics
check 'Enable Zombie Objects' & 'Malloc Stack'

Then run the app, XCode should enter the debugger mode after crash. Run the command below at the console:

info malloc 0x1234567

And you'll find which object cause this EXC_BAD_ACCESS in your console.

查看更多
登录 后发表回答