UIViewController.AttemptRotationToDeviceOrientation 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
以程式設計方式觸發檢視的旋轉。
[Foundation.Export("attemptRotationToDeviceOrientation")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public static void AttemptRotationToDeviceOrientation();
static member AttemptRotationToDeviceOrientation : unit -> unit
- 屬性
備註
如果 傳 ShouldAutorotateToInterfaceOrientation(UIInterfaceOrientation) 回 false
,這個方法可用來以程式設計方式觸發檢視旋轉。
適用於
另請參閱
- <xref:UIKit.UIViewController.WillRotate>
- <xref:UIKit.UIViewController.ShouldAutorotateToInterfaceOrientation>