ios - view controller status bar not appearing -


when set app, , run status bar doesn't appear. have view controller named: "movviewcontroller" .xib file. in appdelegate.h have this:

@property (nonatomic, retain) iboutlet movviewcontroller *viewcontroller_;

in .m, have this:

- (bool)application:(uiapplication *)application didfinishlaunchingwithoptions:(nsdictionary *)launchoptions {     self.window = [[uiwindow alloc] initwithframe:[[uiscreen mainscreen] bounds]];     // override point customization after application launch.     self.window.backgroundcolor = [uicolor whitecolor];     cgrect rcscreen = [[uiscreen mainscreen] applicationframe];     _window = [[uiwindow alloc] initwithframe:rcscreen];     viewcontroller_ = [[movviewcontroller alloc] init];     [_window addsubview:viewcontroller_.view];     [self.window makekeyandvisible];     return yes; } 

when run it, viewcontroller appears, there no status bar. why? thank in advance

try adding in didfinishlaunchingwithoptions method

[[uiapplication sharedapplication] setstatusbarstyle:uistatusbarstylelightcontent                                             animated:no]; 

you can change statusbarstyle please

edit: actually, method show/hide status bar is

[[uiapplication sharedapplication] setstatusbarhidden:no]; 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -