Hiding the address bar without hiding the banner of smart applications on iOS 6

I am currently hiding the address bar on iOS using the standard scrollTo technique (something like this ). I also use the iOS 6 smart banner , but when using the above method to hide the address bar, the smart application banner also hides the address bar from the top of the screen.

Is there a way to hide the address bar, but not a smart banner?

+5
source share
1 answer

In short, smart people in the HTML5 Boilerplate have already solved the problem in their mobile version .

MBP.hideUrlBarOnLoad in helper.js , which hides the address bar and does not hide the smart application banner. It seems like the key difference is probably MBP.getScrollTop , which gets a more intelligent scroll point than just scrolling to 1.

+2
source

Source: https://habr.com/ru/post/927334/


All Articles