Status Bar Background during UIModalTransitionStyleFlipHorizontal

1.1k Views Asked by At

Attached are a few screenshots from my app in the midst of UIModalTransitionStyleFlipHorizontal

enter image description here

enter image description here

enter image description here

enter image description here

I have changed the statusbarstyle to Black in info.plist and I have set the background color or MainWindow.xib to black. Yet, during the UIModalTransitionStyleFlipHorizontal the background behind the statusbar is white. Any idea what I might be doing wrong here? and how I maybe able able to fix this (i.e. get rid the white)?

UPDATE: Here's what my statusbar starts looking like, if I set UIStatusBarStyle to UIStatusBarStyleBlackTranslucent.

enter image description here

So, there is definitely something white behind the statusbar. :-(

1

There are 1 best solutions below

4
On

There are two option possible..

  1. In Info.plist file add the below

    • UIStatusBarStyle UIStatusBarStyleBlackTranslucent or
    • UIStatusBarStyle UIStatusBarStyleBlackOpaque or
    • UIStatusBarStyle UIStatusBarStyleDefault
  2. Add the source in your application.

    [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackTranslucent animated:NO];

or

 [[UIApplication sharedApplication] 
          setStatusBarStyle:UIStatusBarStyleBlackOpaque animated:NO];

or

[[UIApplication sharedApplication] 
      setStatusBarStyle:UIStatusBarStyleDefault animated:NO];

Update:

for hide status bar

[[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO];