I was tuning my iPhone app before submission to Ap开发者_如何学CpStore, when I noticed that Instrument finds a lot of memory leaks if I run in simulator|debug... but if I run it on the Device Instrument doesn't find any one.... To be honest, there were two leaks and I've fixed them. Now no leaks on the Device, but still too leaks on the Simulator.
Who's right??
Trust in the device.
The simulator will be using a slightly different memory model - always test on the device :)
Sam
Did you have NSZombieEnabled set for your simulator build? That will cause a lot of leaks to be reported.
精彩评论