开发者

How to find memory leaks in iphone

开发者 https://www.devze.com 2023-03-28 15:29 出处:网络
We are getting some memory leaks at point: [UI开发者_高级运维View respondsToSelector:]: message sent to deallocated instance

We are getting some memory leaks at point:

[UI开发者_高级运维View respondsToSelector:]: message sent to deallocated instance

but I cannot understand where I am missing an also I don't understand what it means that [UIView respondsToSelector:]: message sent to deallocated instance).


build your app with mac+shift+a and it will show memory leaks.. and for more accurately find memory leaks use Instruments

http://developer.apple.com/library/mac/#documentation/DeveloperTools/Conceptual/InstrumentsUserGuide/WorkingWithInstruments/WorkingWithInstruments.html


Enable NSZOMBIE to start with then use the allocation tools in instruments.


Use XCode 4's analyze feature for basic leaks - it's very good.

0

精彩评论

暂无评论...
验证码 换一张
取 消