Will MKMapView automatically use Google Maps in iOS6, as google maps is restored in iOS6?

三世轮回 提交于 2019-12-04 02:11:29

问题


As apple has restored google maps in iOS6, if I'm using MKMapView in my iPhone app, will it automatically use google maps?


回答1:


If you want to use Google Maps in your app, you should use Google Maps SDK for iOS

https://developers.google.com/maps/documentation/ios




回答2:


No, it's an Apple API so will use Apple's default maps.

Apple has not restored Google Maps. Google has released an iPhone app.




回答3:


Maybe the source of the confusion (at least for me), is the following text snippet from Apple's MKMapView Class Reference:

Important: In iOS 5.1 and earlier, the Map Kit framework uses the Google Mobile Maps (GMM) service to provide map data. Use of specific classes of this framework (and their associated interfaces) is subject to the Google Mobile Maps terms of service. You can find these terms of service at http://code.google.com/apis/maps/iphone/terms.html.

So while I agree with "If you want to use Google Maps in your app, you should use Google Maps SDK for iOS", by reading Apple's documentation, it seems that MKMapView is somehow bound to GMM.



来源:https://stackoverflow.com/questions/13965437/will-mkmapview-automatically-use-google-maps-in-ios6-as-google-maps-is-restored

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!