Edit

Share via


UIViewController.AutomaticallyForwardAppearanceAndRotationMethodsToChildViewControllers Property

Definition

Determines whether the containment events are automatically propagaged to nested view controllers.

[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool AutomaticallyForwardAppearanceAndRotationMethodsToChildViewControllers { [Foundation.Export("automaticallyForwardAppearanceAndRotationMethodsToChildViewControllers")] [ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)] [ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)] get; }
member this.AutomaticallyForwardAppearanceAndRotationMethodsToChildViewControllers : bool

Property Value

The default value is true.

Attributes

Remarks

This method is deprecated and application developers should instead use ShouldAutomaticallyForwardAppearanceMethods and ShouldAutomaticallyForwardRotationMethods.

By default, this setting is true, and UIKit will invoke the following methods on the nested view controllers automatically: ViewWillAppear(Boolean), ViewDidAppear(Boolean), ViewWillDisappear(Boolean), ViewDidDisappear(Boolean), WillRotate(UIInterfaceOrientation, Double), WillAnimateRotation(UIInterfaceOrientation, Double) and DidRotate(UIInterfaceOrientation).

If this value is set to false, your view controller is responsible to forward those events to the nested view controllers.

Applies to