我創建了一個註解,我將其添加到MKMapView中。我將如何去有一個自定義的圖像,而不是標準的紅色別針?MKAnnotation的自定義圖像
@interface AddressAnnotation : NSObject<MKAnnotation> {
CLLocationCoordinate2D coordinate;
NSString *title;
NSString *subtitle;
MKPinAnnotationColor pinColor;
}
@property (nonatomic,retain) NSString *title;
@property (nonatomic,retain) NSString *subtitle;
@property (nonatomic, assign) MKPinAnnotationColor pinColor;
@end
你能指點我一個如何做到這一點的例子嗎?我是客觀的新手。謝謝 – 3sl