简体   繁体   中英

How to add annotation on map overlay ios

How we can add a pin on map overlay like we add on map??

i am creating an overlay using following code

MKOverlayView* overlayV = [[MKOverlayView alloc] initWithFrame:mMapView.frame];
[mMapView addOverlay:overlayV.overlay];

您可以通过以下方式将图钉分别添加到地图视图中

[mMapView addAnnotation:annotation];

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM