UIViewController.AutomaticallyForwardAppearanceAndRotationMethodsToChildViewControllers 属性

定义

确定包含事件是否自动传播到嵌套视图控制器。

[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

属性值

默认值为 true

属性

注解

此方法已弃用,应用程序开发人员应改用 ShouldAutomaticallyForwardAppearanceMethodsShouldAutomaticallyForwardRotationMethods

默认情况下,此设置为 true,UIKit 将在嵌套视图控制器上自动调用以下方法:ViewWillAppear(Boolean)、、ViewDidAppear(Boolean)ViewWillDisappear(Boolean)WillAnimateRotation(UIInterfaceOrientation, Double)ViewDidDisappear(Boolean)WillRotate(UIInterfaceOrientation, Double)和 。DidRotate(UIInterfaceOrientation)

如果此值设置为 false,则视图控制器负责将这些事件转发到嵌套视图控制器。

适用于