The map control Mkmapview is often used in iOS development and can be used to get the latitude and longitude of pity Dorado when you click on a point in the Mkmapview as follows:
If a mkmapview is declared a Mymapview
1, add a gesture in the map, this gesture is a click action, when clicked will call Tappress this method
UITapGestureRecognizer *mtap = [[UITapGestureRecognizer alloc] initwithtarget:self action: @selector (tappress:)];
[Mymapview Addgesturerecognizer:mtap];
[Mtap release];
2, the next can be converted in the Tappress method
-(void) Tappress: (uigesturerecognizer*) Gesturerecognizer {
Cgpoint touchPoint = [Gesturerecognizer locationinview:mymapview];//here TouchPoint is the location of the clicked Point in the map control
Cllocationcoordinate2d touchmapcoordinate =
[Mymapview convertpoint:touchpoint tocoordinatefromview:mymapview];//here touchmapcoordinate is the latitude and longitude of this point
}
iOS click on a point on the map to get the latitude and longitude of that point