I used Leak Instruments to find Leaks and set NSZombieEnabled
to YES
. When I press a button or a particular row from tableView my app crashes and I am unable to find any information in Instruments.
I followed the tutorial here:
http://www.raywenderlich.com/2696/instruments-tutorial-for-ios-how-to-debug-memory-leaks
How can I identify or get more information in Instruments when my app is crashing?
Use Zombie for finding out the Zombie message. It will show you Pink flag with message.
您可以通过从编辑模式启用并在“运行”选项卡中选中“启用僵尸对象”来使用“僵尸”消息,并且可以从控制台查看已释放的对象
Zombies are not the only thing you can have there.
The only way to find leaks is to you profiler with "Leaks" component.
Try also running Project / Analyze for static analyze of your code about memory management errors.
For crash - I think you just have error in code - not really leak. Enable exception breakpoint in your xcode to catch a problem !
http://blog.manbolo.com/2012/01/23/xcode-tips-1-break-on-exceptions
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.