The parent view controller of the recipient.
- iOS 2.0+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
If the recipient is a child of a container view controller, this property holds the view controller it is contained in. If the recipient has no parent, the value in this property is
Prior to iOS 5.0, if a view did not have a parent view controller and was being presented, the presenting view controller would be returned. On iOS 5, this behavior no longer occurs. Instead, use the
presenting property to access the presenting view controller.