Google Maps iOS SDK and storyboards

浪子不回头ぞ 提交于 2019-12-23 12:28:32

问题


I was hoping someone could explain how to get started with Google Maps and Xcode storyboards. I can't find any information about how to actually do it. I just need an example or the steps to take.

There is this http://www.youtube.com/watch?v=r3H8dFG0UCY Google shortcuts video. But I can't see the code in the video.

Any help would be appreciated, thanks.


回答1:


Create in the View in which you want to insert the map a generic UIView, than in the file inspector, give it the custom class "GMSMapView".

Then you can create a IBOutlet to it in the view controller header file and initialize the map..



来源:https://stackoverflow.com/questions/20676733/google-maps-ios-sdk-and-storyboards

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