How to display the google maps in iOS6

2019-08-11 06:47发布

Hi I am new to iOS programming.My requirement is to display the google maps in iOS6.That means it displays the total world map.Please check the attached image for clarification.enter image description here

3条回答
贼婆χ
2楼-- · 2019-08-11 07:12

Here is the Google Maps SDK for iOS website - https://developers.google.com/maps/documentation/ios/ But first, you should get an API key here - https://developers.google.com/maps/ios-access

查看更多
\"骚年 ilove
3楼-- · 2019-08-11 07:18

In iOS 6.0 and above you have some options:

  • Use a UIWebView (the google maps rendering 'engine' is not present as before) to load the maps.google.com page

  • Use the Google Maps iOS SDK (Best Option)

  • Use MapBox and use similar topography rendering to google maps

With the official Google Maps iOS SDK you can actually add your own map to your app, so this is your best option. The docs have great detailed info on how to setup!

查看更多
Deceive 欺骗
4楼-- · 2019-08-11 07:20

Ideal place to start if you want to display maps in iOS is to check out the Location Awareness Programming Guide (Apple's documentation, you will need a free developer account to access it.) This will show you how to use the MapKit framework.

Note that as of iOS 6 Apple uses their own maps back end rather then Google data. If you just want to display a map, Apple's maps should be sufficient.

If you for some reason need to specifically display a map using Google's data, check out their iOS Maps SDK.

This is all assuming that you are working on a native Objective C application, not a Phonegap style or web application.

查看更多
登录 后发表回答