### Install MLeaksFinder with CocoaPods Source: https://github.com/tencent/mleaksfinder/blob/master/README.md To install MLeaksFinder, add the 'MLeaksFinder' pod to your Podfile. No additional code or imports are required after installation. ```bash pod 'MLeaksFinder' ``` -------------------------------- ### Example Memory Leak Report Source: https://github.com/tencent/mleaksfinder/blob/master/README.md This is an example of a memory leak report generated by MLeaksFinder, showing the View-ViewController stack of a leaked object. It indicates which objects in the hierarchy were not deallocated successfully. ```text Memory Leak ( MyTableViewController, UITableView, UITableViewWrapperView, MyTableViewCell ) ``` -------------------------------- ### Mute Assertion for Singleton or Non-Deallocating Objects Source: https://github.com/tencent/mleaksfinder/blob/master/README.md Override the `willDealloc` method in your class to return NO if the object is a singleton or should not be deallocated. This prevents MLeaksFinder from reporting it as a leak. ```objective-c - (BOOL)willDealloc { return NO; } ``` -------------------------------- ### Extend MLeaksFinder to Find Leaks in Other Objects Source: https://github.com/tencent/mleaksfinder/blob/master/README.md Extend MLeaksFinder to detect leaks in objects beyond UIView and UIViewController. Use `MLCheck` to monitor specific properties for potential leaks within the `willDealloc` method. ```objective-c - (BOOL)willDealloc { if (![super willDealloc]) { return NO; } MLCheck(self.viewModel); return YES; } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.