开发者

MKMapView adding specific locations

开发者 https://www.devze.com 2023-03-21 08:56 出处:网络
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, t

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

精彩评论

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