Putting a CLPlacemark on Map in iOS 5

后端 未结 3 1874
执念已碎
执念已碎 2021-02-14 10:18

In iOS 5, there is a new way to forward geocode address (converting address like 1 Infinite Loop, CA, USA to lat/lang address). More info on this is here.

Has anybody t

3条回答
  •  心在旅途
    2021-02-14 11:05

    in swift 3.0

     let pm = placemarks! as [CLPlacemark] // this is Clpmacemark
     let placemark = MKPlacemark.init(placemark: pm)
     self.mapview.addAnnotation(placemark)
    

提交回复
热议问题