FBLeakDetectorVC 1.0.0

FBLeakDetectorVC 1.0.0

Maintained by Filip Busic.



  • By
  • Filip Busic

FBLeakDetectorVC

CI Status Version License Platform

FBLeakDetector is a straightforward and effective leak detector used for finding lingering view controllers that appeared to be released out of memory.

Requirements

FBLeakDetector is compatible with iOS 8.0+ and requires ARC to build.

Installation

FBLeakDetectorVC is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'FBLeakDetectorVC'

Usage

Start by simply subclassing the UIViewController(s) that you'd like to monitor for potential leakage. A common practice is to let your BaseViewController subclass our FBLeakDetectorViewController. By doing so, you'll have a leak detector enabled for all view controllers that inherits your BaseViewController.

Switch between the action types by overriding the getter as follows:

@implementation BaseViewController

#pragma mark - Leak Detection Action Type
- (FBLeakDetectorActionType)leakDetectorActionType {
  return FBLeakDetectorActionTypeException;
}

@end

License

FBLeakDetectorVC is available under the MIT license. See the LICENSE file for more info.