[英]iPhone dev - How can I display a google map in an app without using the browser? And other map questions
I'm making an iPhone application that I want to take in a bunch of addresses and display them on a map using different colored pins to mark the different addresses.我正在制作一个 iPhone 应用程序,我想接收一堆地址并将它们显示在 map 上,使用不同颜色的引脚来标记不同的地址。 First of all, is this possible?
首先,这可能吗? Secondly, I want a way to do it without having to open up the map in a browser, but display it directly as a view.
其次,我想要一种无需在浏览器中打开 map 的方法,而是直接将其显示为视图。 Is this possible?
这可能吗? Thanks.
谢谢。
yes it is possible Tim, check here:是的,有可能蒂姆,在这里检查:
http://blog.objectgraph.com/index.php/2009/04/02/iphone-sdk-30-playing-with-map-kit/ http://blog.objectgraph.com/index.php/2009/04/02/iphone-sdk-30-playing-with-map-kit/
Yes, that is possible.是的,这是可能的。 You can put a MKMapView directly into the view.
您可以将 MKMapView 直接放入视图中。 This can be dragged and dropped in the XIB file, Make sure that you also include the Map Kit framework in your project.
这可以拖放到 XIB 文件中,请确保您的项目中还包含 Map 套件框架。 too, For addresses.
同样,对于地址。 I would look at the link to the tutorial Jacky Boy gave.
我会查看 Jacky Boy 提供的教程的链接。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.