cordova - iOS 7 Status bar with Phonegap -


in ios 7, phonegap applications appear underneath status bar. can make difficult click on buttons/menus have been placed @ top of screen.

is there knows way fix status bar issue on ios 7 in phonegap application?

i've tried offset entire web page css doesn't seem work. there way offset entire uiwebview or make status bar behave did in ios6?

thanks

i found answer on thread, i'll answer question in case else wonders.

just replace viewwillappear in mainviewcontroller.m this:

- (void)viewwillappear:(bool)animated {     // view defaults full size.  if want customize view's size, or subviews (e.g. webview),     // can 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]; } 

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -