Skip to main content
Commonmark migration
ソース リンク

こちらのメソッドを実行することでstyleを反映させることが可能です。

setNeedsStatusBarAppearanceUpdate()

https://developer.apple.com/documentation/uikit/uiviewcontroller/1621354-setneedsstatusbarappearanceupdat

Indicates to the system that the view controller status bar attributes have changed.

 

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.

こちらのメソッドを実行することでstyleを反映させることが可能です。

setNeedsStatusBarAppearanceUpdate()

https://developer.apple.com/documentation/uikit/uiviewcontroller/1621354-setneedsstatusbarappearanceupdat

Indicates to the system that the view controller status bar attributes have changed.

 

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.

こちらのメソッドを実行することでstyleを反映させることが可能です。

setNeedsStatusBarAppearanceUpdate()

https://developer.apple.com/documentation/uikit/uiviewcontroller/1621354-setneedsstatusbarappearanceupdat

Indicates to the system that the view controller status bar attributes have changed.

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.

ソース リンク
shtnkgm
  • 198
  • 6

こちらのメソッドを実行することでstyleを反映させることが可能です。

setNeedsStatusBarAppearanceUpdate()

https://developer.apple.com/documentation/uikit/uiviewcontroller/1621354-setneedsstatusbarappearanceupdat

Indicates to the system that the view controller status bar attributes have changed.

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.