共用方式為


UINavigationControllerDelegate.SupportedInterfaceOrientations 方法

定義

可以覆寫以動態方式指定 支援的方向 navigationController

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

參數

navigationController
UINavigationController

傳回

屬性

適用於