1、隐藏某个控制器的状态栏:
- (BOOL)prefersStatusBarHidden {
returnYES;
}
必须plist里设置:View controller-based status bar appearance ->YES 才生效
2、隐藏启动页展示过程的状态栏:
plist里设置:Status bar is initially hidden -> YES
- (BOOL)prefersStatusBarHidden {
returnYES;
}
必须plist里设置:View controller-based status bar appearance ->YES 才生效
plist里设置:Status bar is initially hidden -> YES