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 及以后版本中使用。
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 及以后版本中使用。