-(MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id<MKAnnotation>)annotation{
/* 下面的定义 会有警告
Incompatible pointer types initializing 'MKPinAnnotationView *__strong' with an expression of type 'MKAnnotationView *'
*/
MKPinAnnotationView *annotationView = [_mymapkit dequeueReusableAnnotationViewWithIdentifier:placemarkIdentifier];
}
MKPinAnnotationView *annotationView = [_mymapkit dequeueReusableAnnotationViewWithIdentifier:placemarkIdentifier];
换成
MKAnnotationView *annotationView = [_mymapkit dequeueReusableAnnotationViewWithIdentifier:placemarkIdentifier];
换成这样就没有警告,但是这样的话大头针就用不了默认的动画效果