开发者

On the iphone, how do I add a location to the maps application?

开发者 https://www.devze.com 2022-12-10 11:10 出处:网络
Is there a way to add a location from开发者_如何学编程 an MKMapView in my application to the built-in Google Maps app?

Is there a way to add a location from开发者_如何学编程 an MKMapView in my application to the built-in Google Maps app?

From what I understand there is probably one of two ways to do it: using [[UIApplication sharedApplication] openURL:xxx] (like opening a web address, writing an email, or dialling a number) or using a C-api like adding a contact to the address book.


This question may have just the answer you're looking for, or maybe I misunderstood the question.

If you're not a link clicker:

[someUIApplication openURL:[[NSURL alloc] initWithString: @"http://maps.google.com/maps?g=London"]]


No, unfortunately. I assume you mean add it as a bookmark of course, given that recents and contacts are more 'dynamic' lists.

0

精彩评论

暂无评论...
验证码 换一张
取 消