iOS Simulator Safari Refresh shortcut

Discussion in 'iOS Programming' started by digitalpencil, Aug 26, 2011.

  1. digitalpencil macrumors 6502

    digitalpencil

    Joined:
    Jul 2, 2007
    Location:
    Manchester, UK
    #1
    Hi, im using Xcode 4's iOS Simulator for mobile web development and was wondering if anyone knew of a keyboard shortcut to refresh the page akin to cmd+r in OS X?

    Basically, i've got it looking at my local lamp stack but when you're making changes every 2 minutes, it's kind of a pain to have click and drag the window up and click the refresh button every time you want to view the changes.

    I was hoping cmd+r would work but no luck.

    Any ideas MR?
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    Put a bit of javascript in your page for testing that reloads the page every so often?
     
  3. KnightWRX macrumors Pentium

    KnightWRX

    Joined:
    Jan 28, 2009
    Location:
    Quebec, Canada
    #3
    That would be quite bad, especially if it refreshes when you're looking into something.

    Just use jQuery to setup a keypress() event that launches location.reload().
     

Share This Page