【发布时间】:2013-09-04 23:08:56
【问题描述】:
我有一个MKMapView,顶部有一个UISearchBar,我希望用户能够输入地址,找到该地址并在其上放置一个图钉。我不知道的是如何将地址字符串变成经纬度,所以我可以制作一个CLLocation对象。有谁知道我该怎么做?
【问题讨论】:
-
这没有帮助,因为他检索到的数据有地址的坐标。当用户搜索地址时,我需要一种方法来查找地址的坐标。
标签: mapkit cllocation cllocationcoordinate2d