1.info.plist添加View controller-based status bar appearance为YES.
2.设置导航条样式bar.barStyle=UIBarStyleBlack;
UINavigationBar*bar = [UINavigationBarappearance];
bar.hidden=YES;
bar.barStyle=UIBarStyleBlack;
1.info.plist添加View controller-based status bar appearance为YES.
2.设置导航条样式bar.barStyle=UIBarStyleBlack;
UINavigationBar*bar = [UINavigationBarappearance];
bar.hidden=YES;
bar.barStyle=UIBarStyleBlack;
本文标题:xcode8适配ios8以上的设备时,状态栏不能设置的问题
本文链接:https://www.haomeiwen.com/subject/gumxuttx.html
网友评论