我正在使用 MKNetworkkit
将 XML 数据解析到服务器。在进入成功 block 之前,它会无缘无故地与 EXC_BAD_ACCESS
崩溃,并且已经完成了 NSZombieEnabled
就像所有的东西一样。![下面是其所在位置的屏幕截图崩溃。][1][1]: http://i.stack.imgur.com/FL3l9.png
您可能会发现这有助于调试 http://subhb.org/2012/07/02/how-to-debug-exc_bad_access-error/
You will get EXC_BAD_ACCESS error mostly in the following scenarios:
- You are trying to access an object that is not initialized.
- You are trying to access an object that no longer exists. Either it’s being released or it’s nil. In ARC mode, make sure you take ownership of the object that you want to use.
- You are passing an message to an object that the object doesn’t understand. It can also happen for bad typecast.
您是否尝试过在代码上运行断点并逐行单步执行您的程序并查看上述任何一项是否与结果匹配?
关于ios - EXC_BAD_ACCESS 与 MKNetworkEngine,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27518968/
欢迎光临 OStack程序员社区-中国程序员成长平台 (https://ostack.cn/) | Powered by Discuz! X3.4 |