共用方式為


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)ViewDidDisappear(Boolean)WillRotate(UIInterfaceOrientation, Double)WillAnimateRotation(UIInterfaceOrientation, Double)DidRotate(UIInterfaceOrientation)

如果此值設定為 false ,您的檢視控制器會負責將這些事件轉送至巢狀檢視控制器。

適用於