0

I tried change style for IOS app. With follow mehods.

UIApplication.sharedApplication().setStatusBarStyle(UIStatusBarStyle.LightContent, animated: false)
application.statusBarStyle = UIStatusBarStyle.LightContent

And

Xcode setting config

But i have result with default style:

Result

How to fix it?

Rinat Mukhamedgaliev
  • 5,401
  • 8
  • 41
  • 59

3 Answers3

2

Go to Info tab of the project target, Add Row:

UIViewControllerBasedStatusBarAppearance, set value NO

and set the status bar in Deployment Info to Light

should works

Robert
  • 3,790
  • 1
  • 27
  • 46
1

Make sure your info.plist is also not setting the status bar style... There are three values you can choose in the status bar style value try accordingly. And make sure that the status bar is not view controller based.

enter image description here

Arpit Dhamane
  • 503
  • 7
  • 19
1

i think you need to add View controller-based status bar appearance in your plist file. This image shows that.It shows were to add lines of codes

vikash1307
  • 272
  • 2
  • 12