MKUserLocation circle

Discussion in 'iOS Programming' started by arnieterm, Mar 11, 2010.

  1. arnieterm macrumors regular

    Joined:
    Aug 28, 2008
    #1
    Hi All,
    Is it possible to manually resize the circle appearing around pin on mapView once we make use of MKUserLocation to show user location with a circle?
    By resize I mean to say increase/decrease the circle radius.

    Thanks
    Arnieterm
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    The circle shows the accuracy of the GPS location. So no, you cannot alter it to mislead the user on the accuracy.
     
  3. arnieterm thread starter macrumors regular

    Joined:
    Aug 28, 2008
    #3
    Thanks for guiding me right.
    I am not able to check this on iphone as my GPS is not working. Please tell me one more thing that on a displayed MKMapView when the user touches on a particular point [by particular point i mean to say any place on the map but excluding the annotation] on the map then is it possible to obtain the location of that point latitude/longitude value?
    Thanks
     
  4. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #4
    I've not really used MKMapView but I would have thought that you can have the user drop a pin annotation on the view. It would seem that if you capture the touch you can use the obvious method in the documentation convertPoint:toCoordinateFromView:
     
  5. arnieterm thread starter macrumors regular

    Joined:
    Aug 28, 2008
    #5
    Do I need to subclass MKMapView in order to get

    Code:
    - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
    event where we can make use of convertPoint:toCoordinateFromView.

    Thanks
    Arnieterm
     
  6. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #6
    If it's not got a method to pass it on to you then yes, I suppose you do. Just remember to pass the even onto the super class...
     

Share This Page