UIActivityIndicator in navbar

Discussion in 'iOS Programming' started by nashyo, Feb 11, 2012.

  1. macrumors 6502

    nashyo

    Joined:
    Oct 1, 2010
    Location:
    Bristol
    #1
    Hi,

    I have set up a UIActivityIndicator and I've positioned it in the centre of my UIWebView. It works fine, but I'd really like it up in the nav bar. I know how to do this in code, without a storyboard. But does anyone know how to do it with storyboard?

    I can't simply drag and drop into the nav bar. Maybe this is a limitation?
     
  2. Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    If you're gonna put it in the navBar, maybe you should instead just turn on the one built into the status bar.

    P.S. That'll need to be done in code, though.
     
  3. thread starter macrumors 6502

    nashyo

    Joined:
    Oct 1, 2010
    Location:
    Bristol
    #3
    Ah that's a better idea. Thanks
     
  4. macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #4
    The progress indicator in the status bar has the meaning of progress during a network connection. If that's your meaning then it's a good idea. Otherwise it's not a good idea.
     
  5. macrumors 6502

    Joined:
    Jul 14, 2008
    #5
    Well, considering he's talking about a UIWebView, there is probably some network communication going on.
     
  6. macrumors 65816

    jnoxx

    Joined:
    Dec 29, 2010
    Location:
    Aartselaar // Antwerp // Belgium
    #6
    Then i'd suggest using the standard UINetworkIndicator on your UIApplication (build in), and maybe another one on top of your UIWebview, which will be removed on the Delegate callback of webview didfinishloading
     
  7. thread starter macrumors 6502

    nashyo

    Joined:
    Oct 1, 2010
    Location:
    Bristol
    #7
    This is great thanks
     

Share This Page