日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

Phonegap在ios7上系统状态栏的问题解决

發(fā)布時間:2025/3/15 32 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Phonegap在ios7上系统状态栏的问题解决 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

用Phonegap+jqm開發(fā)的應用,在ios6下沒問題,但是在ios7下會出現(xiàn)如下系統(tǒng)狀態(tài)欄和header重合的問題,搜索了一下,發(fā)現(xiàn)這其實是 phonegap當前版本的一個已知問題,通過修改./platforms/ios/whhe/Classes /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. //Lower screen 20px on ios 7 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]; }

參考:

http://www.tuicool.com/articles/YRzIJn

http://stackoverflow.com/questions/19209781/ios-7-status-bar-with-phonegap

轉載于:https://www.cnblogs.com/lear/p/3408631.html

總結

以上是生活随笔為你收集整理的Phonegap在ios7上系统状态栏的问题解决的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。