views:

116

answers:

1

Hallo everyone. I would like to offer the user the possibility to (manually) select lat. and long. coordinates by touching a MKMapView. How can I achieve that?

I've seen that the MKMapView delegate offers the method convertPoint:toCoordinateFromView: . I think, that could be a good starting, but I don't know how to create a point from a touch action.

I would appreciate any help. Thanks.

+1  A: 

A UITouch object (see here) has the API:

- (CGPoint)locationInView:(UIView *)view

Then use the MKMapView API you identified.

Eric