Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当用户按下按钮时,我想将可拖动状态从“是”更改为“否”。 我能怎么做 ?
view.draggable = NO;
如果您需要获取对您的 annotationView 的引用,您可以这样做MKMapView viewForAnnotation::
MKMapView viewForAnnotation:
MKAnnotationView *view = [self.map viewForAnnotation:self.annotation]; view.draggable = NO;