Instance Property

tabBarController

The nearest ancestor in the view controller hierarchy that is a tab bar controller.

Declaration

@property(nonatomic, readonly, strong) UITabBarController *tabBarController;

Discussion

If the view controller or one of its ancestors is a child of a tab bar controller, this property contains the owning tab bar controller. This property is nil if the view controller is not embedded inside a tab bar controller.

See Also

Getting Other Related View Controllers

presentingViewController

The view controller that presented this view controller.

presentedViewController

The view controller that is presented by this view controller, or one of its ancestors in the view controller hierarchy.

parentViewController

The parent view controller of the recipient.

splitViewController

The nearest ancestor in the view controller hierarchy that is a split view controller.

navigationController

The nearest ancestor in the view controller hierarchy that is a navigation controller.