http://blog.csdn.net/shark0001/article/details/7064484
上面俩个链接都是讲述如何解决BAD_ACCESS问题
使用工具NSZombieEnabled
Product->Edit Scheme (或commend+<) ------- Arguments-> Environment Variables
添加环境变量
NSZombieEnabled YES //监控deallocated的记忆体,给更多的错误讯息
MallocStackLogging YES //可开放MallocStack,就知道记忆体在程式运行中被配置的历史
MallocStackLoggingNoCompact YES //可以更清楚提示指定的MallocStack状况
当message sent to deallocated instance 消息产生时,在调试终端输入:
info malloc-history 0xe250df0