iOS Change Status Bar Color Changing the status bar style for the entire application

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!



Step 1:

In your Info.plist add the following attribute:

View controller-based status bar appearance

and set its value to


as described in the image below:

enter image description here

Step 2:

In your AppDelegate.swift file, in didFinishLaunchingWithOptions method, add this code:

UIApplication.shared.statusBarStyle = .lightContent


UIApplication.shared.statusBarStyle = .default
  • The .lightContent option will set the colour of the statusBar to white, for the entire app.

  • The .default option will set the colour of the statusBar to the original black colour, for the entire app.


Follow the first step from the SWIFT Section. Then add this code to the AppDelegate.m file:

[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];


[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault];

Got any iOS Question?