IOS: Adding image to custom MKAnnotationview
问题 I want to add a custom image to my annotations in the map. And i have made the following custom MapAnnotationView: #import <UIKit/UIKit.h> #import <Foundation/Foundation.h> #import <MapKit/MapKit.h> #import <CoreLocation/CoreLocation.h> @class POI; @interface MapAnnotation : MKAnnotationView <MKAnnotation > @property (nonatomic) CGFloat lat; @property (nonatomic) CGFloat lon; @property (nonatomic) CGFloat altitude; @property (nonatomic, copy) NSString * title; @property (nonatomic, copy)