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
Refer this url link you can add custom annotations on MapView.
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.