Поделиться через


UIViewController.DidRotate(UIInterfaceOrientation) Метод

Определение

Вызывается после поворота пользовательского интерфейса.

[Foundation.Export("didRotateFromInterfaceOrientation:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, "Use Adaptive View Controllers instead.")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void DidRotate (UIKit.UIInterfaceOrientation fromInterfaceOrientation);
abstract member DidRotate : UIKit.UIInterfaceOrientation -> unit
override this.DidRotate : UIKit.UIInterfaceOrientation -> unit

Параметры

fromInterfaceOrientation
UIInterfaceOrientation

Предварительная ориентация.

Атрибуты

Комментарии

Разработчик приложения может переопределить этот метод для выполнения логики поворота, превышающей то, что обеспечивается автоматическим поворотом, например пересчет дорогостоящих параметров рисования, изменение и перезапуск воспроизведения мультимедиа и т. д.

При вызове этого метода свойству InterfaceOrientation уже присвоено значение .UIInterfaceOrientation

Применяется к