Edit

Share via


UIApplication.SetStatusBarOrientation(UIInterfaceOrientation, Boolean) Method

Definition

Sets the status bar to orientation.

[Foundation.Export("setStatusBarOrientation:animated:")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.None, null)]
public virtual void SetStatusBarOrientation (UIKit.UIInterfaceOrientation orientation, bool animated);
abstract member SetStatusBarOrientation : UIKit.UIInterfaceOrientation * bool -> unit
override this.SetStatusBarOrientation : UIKit.UIInterfaceOrientation * bool -> unit

Parameters

orientation
UIInterfaceOrientation

The specific orientation for the status bar.

animated
Boolean

true if transition to the new orientation should be animated; false if transition should be immediate, without any animation.

Attributes

Remarks

This method should not be used if the application is expected to handle rotation automatically. Once this method is called, the status bar will not change automatically in response to rotation.

Applies to