ios7 hiden status bar

First of all,Excel the method "prefersStatusBarHidden" in view controllers to set the status bar hiden 'YES' when inited

1 [self perfersStatusBarHiden]

Second,Excel the method "performSelector:@selector(setNeedsStatusBarAppearanceUpdate)" to set the view controller based status bar apperance 'NO'

1 [self performSelector:@selector(setNeedsStatusBarAppearanceUpdate)]

Then ,actualize the seletor method

-(BOOL) setNeedsStatusBarAppearanceUpdate
{
          return YES;
}

 

posted @ 2014-03-20 10:29  optt  阅读(125)  评论(0编辑  收藏  举报