Created
February 3, 2016 02:57
-
-
Save anknetau/68286e66fc38e2252bf0 to your computer and use it in GitHub Desktop.
Remove a child view controller
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
UIViewController *vc = self.childViewControllers[3]; // or whatever | |
[vc willMoveToParentViewController:nil]; | |
[vc.view removeFromSuperview]; | |
[vc removeFromParentViewController]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment