开发者

Is there a way to make a line between two coordinates in a map view of MapKit?

I have two locations. A current location (=visible) and a target location where the user may want to go to. could I make a line fro开发者_如何学JAVAm my current location to the target location? as far as I get it, I can only create annotations. But maybe there's a way to just draw in there?


I believe you have to create custom class that implements the MKAnnotation protocol.

There is some good sample code on doing this to create routes at The Reluctant Blogger

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜