Removes the view controller from its parent.
SDKs
- iOS 5.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- UIKit
Declaration
- (void)removeFromParentViewController;
Discussion
This method is only intended to be called by an implementation of a custom container view controller. If you override this method, you must call super
in your implementation.