UIViewController(AppearanceEvents) Category Reference

Declared in UIViewController+AppearanceEvents.h

Overview

UIViewController child view controller appearance management.

  shouldAutomaticallyManageAppearanceTransitions

Whether or not the view controller should automatically notify its children when it appears and disappears.

@property (nonatomic, readonly) BOOL shouldAutomaticallyManageAppearanceTransitions

Discussion

Whenever you enable this, you must override shouldAutomaticallyForwardAppearanceMethods to false

Declared In

UIViewController+AppearanceEvents.h

– viewControllerWillAppear:animated:

Call when a child view controller will appear.

- (void)viewControllerWillAppear:(nonnull UIViewController *)viewController animated:(BOOL)animated

Parameters

viewController

The view controller.

animated

Whether the transition is animated.

Declared In

UIViewController+AppearanceEvents.h

– viewControllerDidAppear:animated:

Call when a child view controller did appear.

- (void)viewControllerDidAppear:(nonnull UIViewController *)viewController animated:(BOOL)animated

Parameters

viewController

The view controller.

animated

Whether the transition is animated.

Declared In

UIViewController+AppearanceEvents.h

– viewControllerWillDisappear:animated:

Call when a child view controller will disappear.

- (void)viewControllerWillDisappear:(nonnull UIViewController *)viewController animated:(BOOL)animated

Parameters

viewController

The view controller.

animated

Whether the transition is animated.

Declared In

UIViewController+AppearanceEvents.h

– viewControllerDidDisappear:animated:

Call when a child view controller did disappear.

- (void)viewControllerDidDisappear:(nonnull UIViewController *)viewController animated:(BOOL)animated

Parameters

viewController

The view controller.

animated

Whether the transition is animated.

Declared In

UIViewController+AppearanceEvents.h