摘要:
一.设置NSZombieEnabled使用NSZombieEnabled功能,当代码中访问已经释放了内存的地方,会给你下面这样的提示,而不仅仅是EXEC_BAD_ACCESS:2008-10-03 18:10:39.933 HelloWorld[1026:20b] *** -[GSFont ascender]: message sent to deallocated instance 0x126550如果要查看上面地址的分配情况开启MallocStackLogging(Xcode4勾选下MallocStackLogging就行)出错时shell malloc_history pid addre 阅读全文