The view controller that is presented by this view controller, or one of its ancestors in the view controller hierarchy.
- iOS 5.0+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
When you present a view controller modally (either explicitly or implicitly) using the
presentViewController:animated:completion: method, the view controller that called the method has this property set to the view controller that it presented. If the current view controller did not present another view controller modally, the value in this property is
Getting Other Related View Controllers
The nearest ancestor in the view controller hierarchy that is a split view controller.
The nearest ancestor in the view controller hierarchy that is a navigation controller.
The nearest ancestor in the view controller hierarchy that is a tab bar controller.
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.Learn more about using Apple's beta software