最近公司的APP需要調(diào)起第三方地圖所以就研究了一下毁习,看了一下地圖的URL API就搞起來。
想要調(diào)起第三方就得設(shè)置白名單和微信差不多
<key>LSApplicationQueriesSchemes</key>
<array>
<string>baidumap</string>
<string>iosamap</string>
<string>comgooglemaps</string>
<string>qqmap</string>
</array>
解釋一下
百度地圖 URL Scheme: baidumap //文檔地址
http://lbsyun.baidu.com/index.php?title=uri/api/ios
高德地圖 URL Scheme: iosamap //文檔地址
http://lbs.amap.com/api/uri-api/guide/travel/route
谷歌地圖 URL Scheme:comgooglemaps //文檔地址
http://lbsyun.baidu.com/index.php?title=uri/api/ios
騰訊地圖 URL Scheme:qqmap //文檔地址
http://lbs.qq.com/uri_v1/guide-route.html
2、導(dǎo)入framework
MapKit.framework,CoreLocation.framework
可以參考:http://www.reibang.com/p/e4039b5a1a43
http://blog.csdn.net/a416863220/article/details/51220739