ios7 set status bar
2013-10-29 21:48
211 查看
You have to do 2 things.
First is to open your
And the second is to add this lines to
First is to open your
info.plistand set
"View controller-based status bar appearance" = NO
And the second is to add this lines to
application:didFinishLaunchingWithOptions
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7) { self.window.clipsToBounds = YES; [[UIApplication sharedApplication] setStatusBarStyle: UIStatusBarStyleBlackOpaque]; UIInterfaceOrientation orientation = [UIApplication sharedApplication].statusBarOrientation; if(orientation == UIInterfaceOrientationLandscapeLeft || orientation == UIInterfaceOrientationLandscapeRight) { self.window.frame = CGRectMake(20, 0,self.window.frame.size.width-20,self.window.frame.size.height); self.window.bounds = CGRectMake(20, 0, self.window.frame.size.width, self.window.frame.size.height); } else { self.window.frame = CGRectMake(0,20,self.window.frame.size.width,self.window.frame.size.height-20); self.window.bounds = CGRectMake(0, 20, self.window.frame.size.width, self.window.frame.size.height); } }
相关文章推荐
- Status Bar in iOS7
- iOS7 hide status bar
- iOS7下隐藏status bar的详细研究
- iOS7 navigation bar and status bar color issue
- IOS7 The Status Bar
- iOS Newbie - Xcode 7 & iOS 9 Navigation Bar & Status Bar
- 关于UISearchBar在IOS6和IOS7的区别以及用法注意
- Android-transulcent-status-bar总结
- 《Android开发从零开始》——40.Status Bar Notifications
- (4.2.37.2)Android-transulcent-status-bar
- getActionBar().setDisplayHomeAsUpEnabled(true)这句报空指针异常的解决方式
- Keyboard、In-Call Status Bar的监听及视图位置改变调整(实例说明)
- Android使用fitsSystemWindows属性实现–状态栏【status_bar】各版本适配方案
- status bar in .plist,
- set oracle report status - waring
- 《Android开发从零开始》——19.Status Bar Notifications学习
- set window status message
- NullPointerException: with ActionBar.setDisplayHomeAsUpEnabled(boolean)' on a null object reference
- Android使用fitsSystemWindows属性实现--状态栏【status_bar】各版本适配方案
- Android 4.4+实现透明状态栏( transparent status bar)