UIViewController - setNeedsStatusBarAppearanceUpdate

来源:互联网 发布:macbook下软件好下吗 编辑:程序博客网 时间:2024/06/02 02:19
UIViewController - setNeedsStatusBarAppearanceUpdate
Indicates to the system that the view controller status bar attributes have changed.

Declaration
SWIFT
func setNeedsStatusBarAppearanceUpdate()
OBJECTIVE-C
- (void)setNeedsStatusBarAppearanceUpdate

Discussion
Call this method if the view controller's status bar attributes, such as hidden/unhidden status or style, change. If you call this method within an animation block, the changes are animated along with the rest of the animation block.

Availability
Available in iOS 7.0 and later.

注意 setNeedsStatusBarAppearanceUpdate 方法在 7.0 及以后版本中使用。

0 0
原创粉丝点击