简体   繁体   中英

How do I display a custom annotation on MKMapView?

I am trying to add a custom annotation to my map view. My goal is to have it so when you tap the annotation, there will be a picture, a label for a name, and a label for how far away the annotation is from your location (I can add the calculation logic later). I've googled for a long time and all the answers are very confusing. Would I need a custom MKAnnotation, a custom MKAnnotationView, or both? Also, what delegate methods, etc. Thanks!x

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