Simbul / baker

The HTML5 ebook framework to publish interactive books & magazines on iPad & iPhone using simply open web standards
http://bakerframework.com
1.53k stars 378 forks source link

ios7 webview shifts up behind the status bar work fine in 6.x #1193

Closed dkamdar closed 11 years ago

dkamdar commented 11 years ago

Hi,

On 6.1, the magazine displays correctly. However when I test it on 7.0 simulator, it shifts by (what looks like is the status bar height).

Please see the screenshots here - iOS6.1 - ios6 1

iOS7.0 - ios7

Notice the extra white space above as the webview has shifted up.

I am using the setting "UIViewControllerBasedStatusBarAppearance" in info.plist to NO. I also tried using YES (default) but the WebView goes behind the tranluscent status bar.

I tried to dig in BakerViewController.m and tried to change the frame if version is 7.0 or above for scrollView in viewDidLoad. However its does not take the new Y co-ordinate.

Heres what I am trying to do if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"7.0")) { self.scrollView = [[[UIScrollView alloc] initWithFrame:CGRectMake(0, 20, pageWidth, pageHeight)] autorelease];

Can someone point me to where I should be tweaking this to make it work correctly on iOS7?

Thanks, Dev.

dkamdar commented 11 years ago

Please close this. I was way off. Was working with version 4.1 ... downloaded 4.2 and it works perfectly ok.

folletto commented 11 years ago

Good to hear. :)