UIViewController.AutomaticallyForwardAppearanceAndRotationMethodsToChildViewControllers 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)]
[get: Foundation.Export("automaticallyForwardAppearanceAndRotationMethodsToChildViewControllers")]
[get: ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[get: ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool AutomaticallyForwardAppearanceAndRotationMethodsToChildViewControllers { get; }
member this.AutomaticallyForwardAppearanceAndRotationMethodsToChildViewControllers : bool

Property Value

The default value is true.

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