Search code examples
iosios6statusbaruistatusbar

Remove rounded corners below UIStatusBarStyleBlackOpaque on iPhone running iOS 6


Since iOS 6.0 the OS adds rounded corners below the statusbar with style UIStatusBarStyleBlackOpaque on the iPhone.

Is there a way to remove them?


Solution

  • Changing the statusbar style to UIStatusBarStyleBlackTranslucent removes the rounded corners. Having a black view behind it, it will look exactly the same like a statusbar with style UIStatusBarStyleBlackOpaque except of the rounded corners.

    You can change the statusbar style using this code:

    [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackTranslucent];