Created
May 15, 2017 23:29
-
-
Save a-voronov/7ff40e0f4724a897e73f8032ef0ccad9 to your computer and use it in GitHub Desktop.
Causing recursive method call by creating method named removeChildViewController (probably conflicting with private api 🤔)
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
extensions UIViewController | |
func removeChildViewController(childViewController: UIViewController) { | |
childViewController.willMoveToParentViewController(nil) | |
childViewController.view.removeFromSuperview() | |
childViewController.removeFromParentViewController() | |
} | |
} |
Author
a-voronov
commented
May 15, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment