2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【Swift】iPhoneのStatusBarを白にする

Posted at

はじめに

iPhoneの上部に表示されているステータスバー(Wifiや時間が表示されているところ)の色をアプリ全体で変更する方法を書きます。

実装方法

Project → Targets → Deployment Info → Status Bar Style
Light Contentに変更します。
スクリーンショット 2021-05-01 16.14.44.png

Info.plistにView controller-based status bar appearanceを追加します。
スクリーンショット 2021-05-01 16.15.50.png

以上でStatusBarを白に変更することができます。
スクリーンショット 2021-05-01 16.17.12.png

2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?