UIApplication.SetStatusBarHidden 方法

定义

重载

SetStatusBarHidden(Boolean, UIStatusBarAnimation)

隐藏或显示状态栏。

SetStatusBarHidden(Boolean, Boolean)

隐藏或显示动画栏,以及它是否应进行动画处理。

SetStatusBarHidden(Boolean, UIStatusBarAnimation)

隐藏或显示状态栏。

[Foundation.Export("setStatusBarHidden:withAnimation:")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'UIViewController.PrefersStatusBarHidden' instead.")]
public virtual void SetStatusBarHidden (bool state, UIKit.UIStatusBarAnimation animation);
abstract member SetStatusBarHidden : bool * UIKit.UIStatusBarAnimation -> unit
override this.SetStatusBarHidden : bool * UIKit.UIStatusBarAnimation -> unit

参数

state
Boolean

true 隐藏状态栏, false 以显示状态栏。

animation
UIStatusBarAnimation

要使用的动画。

属性

适用于

SetStatusBarHidden(Boolean, Boolean)

隐藏或显示动画栏,以及它是否应进行动画处理。

[Foundation.Export("setStatusBarHidden:animated:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 3, 2, ObjCRuntime.PlatformArchitecture.All, "Use 'SetStatusBarHidden (bool, UIStatusBarAnimation)' instead.")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void SetStatusBarHidden (bool hidden, bool animated);
abstract member SetStatusBarHidden : bool * bool -> unit
override this.SetStatusBarHidden : bool * bool -> unit

参数

hidden
Boolean

true 隐藏状态栏, false 以显示状态栏。

animated
Boolean

常量,指示是否应有动画,以及如果请求动画,它是否应淡入或淡出状态栏,或将状态栏滑入或滑出。

属性

适用于