Mac xcode web app questions

Discussion in 'Web Design and Development' started by sheeracali, Apr 13, 2012.

  1. sheeracali macrumors member

    Joined:
    Mar 25, 2011
    #1
    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?
     
  2. balamw Moderator

    balamw

    Staff Member

    Joined:
    Aug 16, 2005
    Location:
    New England
    #2
    MOD NOTE:

    Might get more traction in Web Design and Development.

    B
     
  3. robcontreras macrumors newbie

    Joined:
    May 24, 2012
    #3
    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?
     

Share This Page