Instance Property

presentedViewControllers

The view controllers, if any, that are currently presented by the view controller.

Declaration

@property(readonly) NSArray<__kindof NSViewController *> *presentedViewControllers;

Discussion

There is a one-to-many relationship between the view controller whose presentedViewControllers property you are accessing, and the view controllers it is currently presenting.

See Also

Getting Related View Controllers

parentViewController

The immediate ancestor view controller of the view controller.

presentingViewController

The view controller that presented the view controller or that presented its farthest ancestor view controller.