开发者

MKMapView adding specific locations

Could anyone please tell how to add some specific locations on MapView(MKMapView). I made mapView which shows my current location, I also added searchBar for searching address's locations. For now, this works fine, but I also want for MapVie开发者_JS百科w to show me some specific locations (for example: hospitals nearby)

Thanks!


Get the coordinates for the location you want to show on the map. Have an array of annotations with each annotation having the coordinate you want to show. then make use of the method

[urMapView addAnnotations:urAnnotationsArray];
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜