MapKit/CoreLocation

Discussion in 'iOS Programming' started by nightcrawler234, Oct 4, 2010.

  1. nightcrawler234 macrumors newbie

    Joined:
    Jul 21, 2010
    #1
    I'm trying to do something very basic:

    Create a mapview, and then after someone presses a UIBarButtonItem on a UIToolBar, it gets your current location (drop the blue beeping dot/ gps thing)

    Appreciate it if someone could tell me how exactly to code this out.

    Thanks
     
  2. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    There's no property of MKMapView that you think would help you out?
     
  3. nightcrawler234 thread starter macrumors newbie

    Joined:
    Jul 21, 2010
    #3
    Well I know I have to
    Put an action on the buttonBarItem that sets mapView.showsUserLocation = TRUE;

    But That's all it takes to show the "blue dot." However, the map won't keep the blue dot on-screen.

    I'm a n00b, appreciate the help
     
  4. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #4
    Please elaborate. I'm not sure what you mean by this.
     
  5. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #5
    I suspect he means that when the userLocation changes he doesn't set the centerCoordinate (animated or otherwise).

    If that's not a gigantic, super-huge hint to the OP I have no idea what is.
     

Share This Page