Equivalent of MKPolyline in iOS 3
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.
精彩评论