I want change draggable state 开发者_如何学编程from YES to NO when user pressed the button.
How can I do ?view.draggable = NO;
If you need to get a reference to your annotationView, you can do so with MKMapView viewForAnnotation:
:
MKAnnotationView *view = [self.map viewForAnnotation:self.annotation];
view.draggable = NO;
精彩评论