Closed2

【Swift】attemptRotationToDeviceOrientation 0->1

yoshitakayoshitaka
//Type Method
attemptRotationToDeviceOrientation()
//Attempts to rotate all windows to the orientation of the device.
//Declaration
class func attemptRotationToDeviceOrientation()
//Discussion
//Some view controllers may want to use app-specific conditions to determine what interface orientations are supported. If your view controller does this, when those conditions change, your app should call this class method. The system immediately attempts to rotate to the new orientation.

一部のViewControllerは、アプリ固有の条件を使用して、サポートされているインターフェイスの向きを決定したい場合があります。 ビューコントローラーがこれを行う場合、これらの条件が変更されたときに、アプリはこのクラスメソッドを呼び出す必要があります。 システムはすぐに新しい方向に回転しようとします。

このスクラップは2021/03/16にクローズされました