Program received signal: “EXC_BAD_ACCESS”

若如初见. 提交于 2019-12-05 17:32:49

You have to retain that string. This is the most likely reason.

Edit: The only reason why it is crashing is the bad pointer. The bad pointer = over-releasing the object. Just run your app with zombies enabled and you'll see the place where you're doing that. Check this http://www.markj.net/iphone-memory-debug-nszombie/

Whenever there is a crash, post the backtrace.

Before you do, use "build and analyze" and fix any problems it identifies.

After doing that, if it still crashes, then do a pass with Zombie detection on and see if you are over-releasing something (which is likely, that code has an obvious over-release problem as is).

If it is still crashing, then we'll need to see more code....

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!