Is it possible to hide the address bar in iOS 7 Safari? [duplicate]

坚强是说给别人听的谎言 提交于 2019-12-18 10:34:07

问题


Is it possible to hide the address bar in iOS 7?

I am currently using the below to do this in iOS 6 but I just updated xCode and tested in iPhone Sim and iOS 7 Safari is not responding to this.

js:

window.addEventListener("load",function() {
    // Set a timeout...
    setTimeout(function(){
        // Hide the address bar!
        window.scrollTo(0, 1);
    }, 0);
});

回答1:


It does not work anymore. Here is a very detailed article around the changes in IOS7



来源:https://stackoverflow.com/questions/18813476/is-it-possible-to-hide-the-address-bar-in-ios-7-safari

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!