iOS 7
Info.plist
不但要在Info.plist中增加 Status bar is initially hidden一行,选择为 YES,
还需增加 View controller-based status bar appearance 一行,选择为 NO。
[[UIApplication sharedApplication]setStatusBarHidden:YES withAnimation:UIStatusBarAnimationFade];
iOS 7
Info.plist
不但要在Info.plist中增加 Status bar is initially hidden一行,选择为 YES,
还需增加 View controller-based status bar appearance 一行,选择为 NO。
[[UIApplication sharedApplication]setStatusBarHidden:YES withAnimation:UIStatusBarAnimationFade];
本文标题:iOS随笔小记-- 隐藏Status bar
本文链接:https://www.haomeiwen.com/subject/isjgfxtx.html
网友评论