Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

sheeracali

macrumors member
Original poster
Mar 25, 2011
37
0
Hi, Im working on a web app in xcode and was wondering 3 things.

1. can I make it so that when entering full screen mode, the web view content zooms to fit the screen?

2. how can I disable resize, but still make the content grow when switching to fullscreen?

3. can I put javascript into menubar items, so the command activates when something on the menubar is clicked?
 
Hi, Im working on a web app in xcode and was wondering 3 things.

1. can I make it so that when entering full screen mode, the web view content zooms to fit the screen?

2. how can I disable resize, but still make the content grow when switching to fullscreen?

3. can I put javascript into menubar items, so the command activates when something on the menubar is clicked?

1. I believe this can be done with a meta tag in html called viewport

2. Go to the Interface Builder and disable "Allow User Interaction" (It might be just "User interaction" or something along those lines since i don't have Xcode with me right now, but it's a checkbox you click to enable or disable it)

3. I can think of a way or two but doing so involves reloading the web view every time you click the menu bar item and adding the js to the html string. Isn't it more simple to create the buttons in the page and design them to look like the app's UI?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.