【发布时间】:2014-06-19 13:15:15
【问题描述】:
苹果的文档中提到并解释了这种方法。有人可以指导我如何使用它吗?
convenience init(coordinates coords: CMutablePointer<CLLocationCoordinate2D>, count: Int)
【问题讨论】:
苹果的文档中提到并解释了这种方法。有人可以指导我如何使用它吗?
convenience init(coordinates coords: CMutablePointer<CLLocationCoordinate2D>, count: Int)
【问题讨论】:
你可以这样使用它:
let c1 = CLLocationCoordinate2D(latitude: 0.0, longitude: 0.0)
let c2 = CLLocationCoordinate2D(latitude: 1.0, longitude: 1.0)
var a = [c1, c2]
var polyline = MKPolyline(coordinates: &a, count: a.count)
我在文档中看不到创建 MKPolylines 的“更快捷”的方式...我假设他们仍在此处构建桥梁。
【讨论】: