如何在iPhone中的两个位置之间绘制路线? [英] How to draw route between two locations in iPhone?

查看:161
本文介绍了如何在iPhone中的两个位置之间绘制路线?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们如何使用iOS 4.0在MapView中的两个位置之间绘制路线?有人可以说明它吗?

How can we draw the routes between two locations in MapView using the iOS 4.0? Can some one shed light on it?

推荐答案

我发现使用MKOverlayPathView和MKPolyLine以及MKPolyLineView我们可以在Mapview中绘制路线。

I found that using the MKOverlayPathView and MKPolyLine and MKPolyLineView we can draw routes in Mapview.

这篇关于如何在iPhone中的两个位置之间绘制路线?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆