LoginSignup
3

More than 1 year has 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

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
What you can do with signing up
3