Pregunta

I'm trying to present simple UIViewController modally by using segue. after view controller is presented status bar is getting hidden, how to prevent status bar getting hidden ? i have one solution, just to put

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

on viewDidApper method, but its not a good solution, because anyway at first status bar is getting hidden

¿Fue útil?

Solución

Solved. I hope this answer will help other people. The problem is that i have ZBarReaderViewController inside my viewController , so inside ZBAr i believe there is some code to hide status bar. Since i didn't want to show ZBAr frame in full screen mode i set the zbarController.wantsFullScreenLayout=NO; and everything starts working fine.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top