2013-08-19 1 views
1
내 응용 프로그램에서지도 응용 프로그램을 호출 할

를 사용하여와 (애플지도), 그리고호출 maps.app 탐색 위도와 경도

소스 주소 (네비게이션) 목적지 주소에 위도와 경도로에게 URL을 전송

링크를 어떻게 구성합니까?

답변

2

MKMapItem의 인스턴스를 만들고 openMapsWithItems:launchOptions: 메서드를 사용하여지도 앱을 열어야합니다.

체크 this reference.

[NSString stringWithFormat: @"http://maps.google.com/maps?saddr=%f,%f&daddr=%f,%f", 
       currentLocation.latitude, currentLocation.longitude, 
       destinationLocation.latitude, destinationLocation.longitude]; 
+0

는 iOS6의에 대한 좋은 솔루션 그게 전부,하지만 난 iOS5를을 지원해야합니다 (당신이에 대한 지원을 중단 생각한다)에서 iOS 5의 경우


나는 형식이 생각 –