phonegap3+,ios7+ 状态栏问题的解决
2015-02-10 15:30
113 查看
使用phonegap混合开发时,在ios7+的设备中会出现系统状态栏和header重合的问题,加入代码使得状态栏和我们的应用分离:
MainViewController.m
MainViewController.m
- (void)viewWillAppear:(BOOL)animated { // View defaults to full size. If you want to customize the view's size, or its subviews (e.g. webView), // you can do so here. if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7) { CGRect viewBounds = [self.webView bounds]; viewBounds.origin.y = 20; viewBounds.size.height = viewBounds.size.height - 20; self.webView.frame = viewBounds; } [super viewWillAppear:animated]; }
相关文章推荐
- phonegap开发中IOS状态栏与APP重叠问题解决方法
- phonegap如何解决ios7状态栏bar显示问题
- phonegap解决iphone顶部状态栏位置的问题
- 解决PhoneGap在Android手机上的全屏问题
- PhoneGap开发-解决跳转时闪屏的问题
- phonegap - 解决ios中使用定位的页面会跳出一个用户确认提示的问题
- [Phonegap+Sencha Touch] 移动开发20 IOS7状态栏问题
- 解决phonegap初始加载慢的问题
- 解决PhoneGap在Android手机上的全屏(FullScreen)问题
- ios7状态栏重叠问题的解决方法
- Phonegap在ios7上系统状态栏的问题解决
- 彻底解决iOS7状态栏隐藏的问题(以及setStatusBarHidden:YES不起作用问题)
- 800X400模拟器运行android4.0 状态栏(SystemUI)报错问题解决总结
- 解决“多个UITableView的时候不能点击状态栏回到顶部”问题
- 状态栏总在CDialogBar上方的问题解决方法
- phonegap为何会出现中文乱码问题 解决方法
- 编写 PhoneGap 程序调试问题解决方案
- 解决PhoneGap在Android手机上的全屏问题 .
- nodejs安装PhoneGap 提示not found git问题解决
- 解决“同个UIView里面有多个UITableView的时候不能点击状态栏回到顶部”问题