共用方式為


UIViewController.ShouldAutomaticallyForwardRotationMethods 屬性

定義

是否應該將旋轉方法轉送至子 UIViewController 系。

[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, "Use Adaptive View Controllers instead.")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool ShouldAutomaticallyForwardRotationMethods { [Foundation.Export("shouldAutomaticallyForwardRotationMethods")] [ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, "Use Adaptive View Controllers instead.")] [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)] [ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)] get; }
member this.ShouldAutomaticallyForwardRotationMethods : bool

屬性值

預設值是 true

屬性

備註

覆寫此成員並將其設定為 false 的應用程式開發人員,負責控制其子 UIViewController 系輪替相關方法。 應用程式開發人員應該呼叫其子 UIViewController 系的 WillRotate(UIInterfaceOrientation, Double)WillAnimateRotation(UIInterfaceOrientation, Double)DidRotate(UIInterfaceOrientation)

適用於