Native Apple Maps的回调方法
Call back method for Native Apple Maps
我使用以下代码在我的应用程序中使用本机地图获取方向:
[NSURL URLWithString:[NSString stringWithFormat:@"http://maps.apple.com/?saddr=%f,%f&daddr=%f,%f",self.mapView.userLocation.coordinate.latitude,self.mapView.userLocation.coordinate.longitude, self.data.lat,self.data.long]]];
是否有回调方案 return 回到应用程序?类似于 Googles
comgooglemaps-x-callback
。它似乎不在 Apple
文档中,所以我不确定它是否可能。
不,Apple 地图没有 return 调用应用程序的方案。 Google 使用 x-callback-url,Apple 地图不支持。
我使用以下代码在我的应用程序中使用本机地图获取方向:
[NSURL URLWithString:[NSString stringWithFormat:@"http://maps.apple.com/?saddr=%f,%f&daddr=%f,%f",self.mapView.userLocation.coordinate.latitude,self.mapView.userLocation.coordinate.longitude, self.data.lat,self.data.long]]];
是否有回调方案 return 回到应用程序?类似于 Googles
comgooglemaps-x-callback
。它似乎不在 Apple
文档中,所以我不确定它是否可能。
不,Apple 地图没有 return 调用应用程序的方案。 Google 使用 x-callback-url,Apple 地图不支持。