Partager via


UIViewController.AutomaticallyForwardAppearanceAndRotationMethodsToChildViewControllers Propriété

Définition

Détermine si les événements de confinement sont automatiquement propagagés aux contrôleurs d’affichage imbriqués.

[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

Valeur de propriété

La valeur par défaut est true.

Attributs

Remarques

Cette méthode est déconseillée et les développeurs d’applications doivent utiliser ShouldAutomaticallyForwardAppearanceMethods à la place et ShouldAutomaticallyForwardRotationMethods.

Par défaut, ce paramètre est true, et UIKit appelle automatiquement les méthodes suivantes sur les contrôleurs d’affichage imbriqués : ViewWillAppear(Boolean), ViewDidAppear(Boolean), ViewWillDisappear(Boolean)ViewDidDisappear(Boolean), , WillRotate(UIInterfaceOrientation, Double)et WillAnimateRotation(UIInterfaceOrientation, Double)DidRotate(UIInterfaceOrientation).

Si cette valeur est définie sur false, votre contrôleur d’affichage est chargé de transférer ces événements aux contrôleurs d’affichage imbriqués.

S’applique à