0

In iPhone we have a UIStatusBar which shows the time. Does anybody know how I can change its textcolor?

Below is the code changing style, but can we change THE label's color?

 [[UIApplication sharedApplication]
     setStatusBarStyle:UIStatusBarStyleBlackTranslucent];
harpun
  • 4,022
  • 1
  • 36
  • 40
user2902101
  • 493
  • 1
  • 9
  • 17

1 Answers1

0

To make it work you should insert your line of code inside AppDelegate

[[UIApplication sharedApplication]
 setStatusBarStyle:UIStatusBarStyleBlackTranslucent];

and than also set a value for the statusbar inside info.plist like this

enter image description here

Alex Cio
  • 6,014
  • 5
  • 44
  • 74