开发者

How do I change draggable state of AnnotationView at specific moment?

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;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜