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

返回

属性

适用于