Pregunta

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?

¿Fue útil?

Solución

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];
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top