问题
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:
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.
来源:https://stackoverflow.com/questions/8441390/crash-on-download-asynchronous-images-in-iphone-dev