Open Source Library For Easily Tracking Leaky iOS View Controllers

View controller leaks caused by UIViewController’s never really being deallocated can be tough to track down – especially if blocks are being used and you can’t see the leak in Xcode’s leak tool.

Javier Soto has created a simple library for dealing with this issue called MSVCLeakHunter.

What MSVCLeakHunter does is swizzle in a few methods into every UIViewController that alert you to times when a view disappears, but is not deallocated after a certain period of time in the console.

You can find MSVCLeakHunter with a demo project on Github here.

An easy way to track down some potentially very tricky bugs.

DeliciousTwitterFacebookRedditLinkedInEmail

Original article: Open Source Library For Easily Tracking Leaky iOS View Controllers

©2012 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.


Leave a Reply

Your email address will not be published. Required fields are marked *