共用方式為


UINavigationControllerDelegate.GetPreferredInterfaceOrientation 方法

定義

可以覆寫以設定 的 navigationController 慣用介面方向。

[Foundation.Export("navigationControllerPreferredInterfaceOrientationForPresentation:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual UIKit.UIInterfaceOrientation GetPreferredInterfaceOrientation (UIKit.UINavigationController navigationController);
abstract member GetPreferredInterfaceOrientation : UIKit.UINavigationController -> UIKit.UIInterfaceOrientation
override this.GetPreferredInterfaceOrientation : UIKit.UINavigationController -> UIKit.UIInterfaceOrientation

參數

navigationController
UINavigationController

傳回

屬性

適用於