状态栏的设置
ios6 1、General设置
2、plist里面View controller-based status bar appearance 设置为NO
3、代码[UIApplication sharedApplication].statusBarHidden = YES;
4、-(BOOL)prefersStatusBarHidden
{
return YES;
}
5、设置状态的样式
-(UIStatusBarStyle)preferredStatusBarStyle
{
return UIStatusBarStyleBlackOpaque;
}
ios7是由controller来控制状态栏的