Search code examples
iphonecoding-styletransparentstatusbar

How to set the Transparent statusbar in iphone


In my application i want to set the statusbar transparent.There are three styles are possible for changing the style of the statusbar.

  1. gray
  2. black
  3. black translucent

mycode:

[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackTranslucent];

How to set the transparent statusbar?


Solution

  • You can only hide the status bar using Status bar is initially hidden property in your info.plist