Created
October 15, 2019 14:17
-
-
Save uc-compass-bot/3d3404f48bff0df5e6b6a382d5df01d7 to your computer and use it in GitHub Desktop.
Catch Retain Cycles In Navigation Controller Subclass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
class NavigationController: UINavigationController { | |
override func popViewController(animated: Bool) -> UIViewController? { | |
let viewController = super.popViewController(animated: animated) | |
MemoryChecker.verifyDealloc(object: viewController) | |
return viewController | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment