How can i get any information like lat,long when i touch on MKMapView in iPhone/iPad?
问题 I have a mapView using xib file now when i touch in the mapview i want the latitude and longitude of that particular area so there any whey or any sample code which help me in this task.Thanks in Advance. 回答1: With iOS 3.2 or greater, it's probably better and simpler to use a UIGestureRecognizer with the map view instead of trying to subclass it and intercepting touches manually. First, add the gesture recognizer to the map view: UITapGestureRecognizer *tgr = [[UITapGestureRecognizer alloc]