开发者

Equivalent of MKPolyline in iOS 3

开发者 https://www.devze.com 2023-03-13 04:40 出处:网络
In iOS 4 when I need to build a polyline I use code like this: MKPolyline*polyLine=[MKPolyline polylineWithCoordinates:coords count:[points count]];

In iOS 4 when I need to build a polyline I use code like this:

MKPolyline  *polyLine=[MKPolyline polylineWithCoordinates:coords count:[points count]]; 

But with iOS 开发者_StackOverflow中文版3 (3.1.3) it doesn't work...

What is the equivalent for iOS 3? Or what is the right way to build a polyline for iOS3?


MKPolyline is only available in iOS 4.0 and later. There's no (documented, at least) support in iOS 3.1.


Craig Spitzkoff found a way to display a polyline on a map using an annotation. William Lachance built on that in his nvpolyline project.

0

精彩评论

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