开发者

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

开发者 https://www.devze.com 2023-02-15 21:02 出处:网络
I want change draggable state 开发者_如何学编程from YES to NO when user pressed the button. How can I do ?view.draggable = NO;

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

精彩评论

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

关注公众号