2011-08-29 2 views

답변

0

다음을의 미합니다 : latitute and longitude?

// Assume you declare MKMapView *mapView; 
CGPoint point = [sender locationInView:self.mapView]; 
CLLocationCoordinate2D locCoord =[self.mapView convertPoint:point toCoordinateFromView:self.mapView]; 

NSString *yourAddress = [NSString stringWithFormat:@"Lat: %f, Lng: %f", locCoord.latitude, locCoord.longitude]; 

희망 하시길 바라며, 달성하고자하는 것을 구체적으로 설명하지 않으시면 도움을 드리겠습니다.

편집 :

위치는 당신이이 도움이 될 수 원하는 경우 : 샘플 코드를 게시 MathieuF 님의 http://stackoverflow.com/questions/3822297/read-current-location-name-using-map-view-in-iphone

크레딧.

+0

캘리포니아 수유 용지도를 클릭하면 해당 위치가 코드에 문자열로 저장됩니다. – iRam11

관련 문제