次の方法で共有


UIViewController.AttemptRotationToDeviceOrientation メソッド

定義

プログラムによってビューの回転がトリガーされます。

[Foundation.Export("attemptRotationToDeviceOrientation")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public static void AttemptRotationToDeviceOrientation ();
static member AttemptRotationToDeviceOrientation : unit -> unit
属性

注釈

が を返すfalse場合ShouldAutorotateToInterfaceOrientation(UIInterfaceOrientation)、このメソッドを使用してプログラムによってビューの回転をトリガーできます。

適用対象

こちらもご覧ください

  • <xref:UIKit.UIViewController.WillRotate>
  • <xref:UIKit.UIViewController.ShouldAutorotateToInterfaceOrientation>