iOS7中让状态栏显示

希望对大家有用。。。。。。

 

  if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7) 
{
      [application setStatusBarStyle:UIStatusBarStyleLightContent];
      self.window.clipsToBounds =YES;
      self.window.frame =  CGRectMake(0,20,self.window.frame.size.width,self.window.frame.size.height-20);
}

 
posted @ 2013-11-04 18:02  zcb1989  阅读(209)  评论(0编辑  收藏  举报