I am developing an iPhone Application in which i have provide Pin Annotation button on tool bar. When user click on button then pin will drop on center of map view. Now i want that user move that pin and place at their desired place and i will get latitude and longitude of that point. So how i define all these event with my map view? How do that? I get this code for add annotation.
- (void)addPinAnnotation:(id)sender {
UICRouteAnnotation *pinAnnotation = [[[UICRouteAnnotation alloc] initWithCoordinate:[routeMapView centerCoordinate]
title:nil
annotationType:UICRouteAnnotationTypeWayPoint] autorelease];
[routeMapView addAnnotation:pinAnnotation];
}
How get latitude and longitude of that point?
Thanks in advance....