MKPinAnnotationView和MKAnnotationView区别,
MKAnnotationView可以使用静态图片作为实例作为view,如果想使用Apple自带的标准大头针,那么需要使用
MKPinAnnotationView。
MKAnnotation Protocol Reference
@protocol MKAnnotation <<span class="s2">NSObject>
// Center latitude and longitude of the annotion view.
// The implementation of this property must be KVO compliant.
@property (nonatomic, readonly) CLLocationCoordinate2D coordinate;
@optional
// Title and subtitle for use by selection UI.
@property (nonatomic, readonly, copy) NSString *title;
@property (nonatomic, readonly, copy) NSString *subtitle;
// Called as a result of dragging an annotation view.
- (void)setCoordinate:(CLLocationCoordinate2D)newCoordinate NS_AVAILABLE(NA, 4_0);