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
本文标题:iOS 状态栏相关设置
本文链接:https://www.haomeiwen.com/subject/maqbyltx.html
网友评论