annotationView.canShowCallout = YES; // 是否允许弹出callout
annotationView.enabled = NO; // 默认为YES,当为NO时view忽略触摸事件
annotationView.animatesDrop = NO; // 添加到地图时是否使用下落动画效果
annotationView.draggable = NO; // 是否支持触摸拖动
annotationView.image = [UIImage imageNamed:@"start_annotation"];
// 大头针中心点偏移量
annotationView.centerOffset = CGPointMake(0, -annotationView.frame.size.height*0.5);
return annotationView;
重点在于 annotationView.enabled = NO; // 默认为YES,当为NO时view忽略触摸事件