Get Updates By E-mail 

Article Written By:
Johann Dowa

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.


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments