开发者

How to email CLLocationCoordinate2D as a link

I am trying to emulate the Maps 'Share Location' via email functionality.

I have the latitude and longitude of my location and am currently using it to display the location on a map via MKMapView.

I also have functionality that composes an email from the app and I would like to include the location in it but can not figure out how to construct a link, using the longitude and latitude.

开发者_如何学PythonI have seen other apps with apps with this functionality so I know it is possible.

Any help would be much appreciated.

Thanks in advance.

UPDATE:

The link should open Google Maps.


Where should it link to? Your app or Google Maps? For the latter, check out the Apple URL Scheme Reference. For the former, you have to construct your own URL scheme and then create a string that matches your scheme.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜