3

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

taffarel
  • 4,015
  • 4
  • 33
  • 61

1 Answers1

4

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.

taffarel
  • 4,015
  • 4
  • 33
  • 61