URL Loading Indicator

Discussion in 'iOS Programming' started by Garrett, Aug 22, 2008.

  1. macrumors regular

    Joined:
    Apr 4, 2007
    #1
    I notice with Google Maps, and say MySpace, when they are grabbing info a little spinner displays up in the menu bar. Is this something that you do manually to let the user know something is up? I am using a NSURL method...

    I am only asking because I just think maybe I am doing something wrong?
     
  2. macrumors demi-god

    fishkorp

    Joined:
    Apr 10, 2006
    Location:
    Ellicott City, MD
  3. thread starter macrumors regular

    Joined:
    Apr 4, 2007
    #3
    No... did you even read what I asked? In the MENU bar, not a spinning icon. :rolleyes:
     

    Attached Files:

  4. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #4
    Look at the UIApplication documentation, specifically the networkActivityIndicatorVisible property.
     
  5. macrumors member

    Joined:
    Jul 28, 2008
    #5
    What you are refering to is called the Status Bar in the iPhone SDK.

    There is nothing called "Menu Bar", so one may easily understand this term as either the Status Bar, the Top Bar of a UINavigationController or even a TabBar.
     
  6. macrumors demi-god

    fishkorp

    Joined:
    Apr 10, 2006
    Location:
    Ellicott City, MD
    #6
    My bad.

    My app does that automatically when it is pulling data from a web service, I don't have to do anything special to make it happen :confused:
     
  7. macrumors member

    Joined:
    May 24, 2003
    #7
    That's the networkActivityIndicator for you: always indicating that network activity. :)

    It seems to be one of Apple's 'freebies'. It shows automatically when network activity is taking place, and is driven by the system. However, if you don't want the user to see that your app is using the network (Why wouldn't you? I dunno.), you can switch it off using the networkActivityIndicatorVisible: method of UIApplication. But in your case, you seem to be in the happy position of the phone automatically doing what you want!
     

Share This Page