(在plist里设置):
首先设置key:Status bar is initially hidden 为YES
然后设置key:View controller-based status bar appearance 为NO
即可实现全局隐藏状态栏了
一、横屏、竖屏设置
1、android
AndroidManifest.xml文件中,
screenOrientation="landscape" 为横屏,
screenOrientation="portrait"为竖屏
2、iOS
- - (NSUInteger) supportedInterfaceOrientations{
- #ifdef __IPHONE_6_0
- // 横屏显示
- // return UIInterfaceOrientationMaskLandscape;
- // 竖屏显示
- return UIInterfaceOrientationMaskPortrait;
- #endif
- }