Jump to content

Hide the address bar for iphone 4


sparksflyupwards
 Share

Recommended Posts

I am very new to html5 developing and so far this forum has been a lovely place to be!

 

I've just hit into a bit of trouble trying to remove the address bar from my game for the iphone 4 and none of what i've tried seems to work....

so far I have tried:
the meta tag
<meta name=apple-mobile-web-app-capable content=yes>
and
 scrollTo(0, 1);
But neither seem to work for the iphone 4~!

 

 

I'm sorry if this is a very rookie question but I can't seem to solve it!

Link to comment
Share on other sites

Which iOS version is it running? They all tend to behave slightly differently in this regard, as each comes with a new version of safari. iOS7 breaks the scrollTo trick completely, although apparently there is a new css feature being introduced that will help but it's only going to work once updates to iOS7 come out of beta. See this topic:

 

http://www.html5gamedevs.com/topic/1436-ios7-is-going-to-break-your-games/

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...