MKMapView adding specific locations
谁能告诉我如何在 MapView(MKMapView) 上添加一些特定的位置。我制作了显示我当前位置的 mapView,我还添加了用于搜索地址位置的 searchBar。目前,这很好用,但我也希望 MapView 向我显示一些特定位置(例如:附近的医院)
谢谢!
获取您要在地图上显示的位置的坐标。有一组注释,每个注释都有您要显示的坐标。然后使用方法
1
|
[urMapView addAnnotations:urAnnotationsArray];
|
来源:https://www.codenong.com/6759145/
微信公众号
手机浏览(小程序)
Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(): Failed to enable crypto in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_10768.jpg): failed to open stream: operation failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57