作者热门文章
- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我已经创建了可拖动的图钉注释并且它工作得很好,问题是我不想在特定的按钮点击上拖放图钉,甚至不想重新加载 map ,因为我在上面有叠加层,我使用了 DDAnnotation
类作为可拖动的引脚
DDAnnotation *annotation = [[DDAnnotation alloc] initWithCoordinate:theCoordinate addressDictionary:nil];
annotation.title = @"Testing";
annotation.subtitle = @"Drag and Drop Pin";
[self.detailMapView addAnnotation:annotation];
谢谢
任何帮助都将不胜感激!
最佳答案
请设置[注解setDraggable:NO];
关于ios - 创建可拖动的引脚注释,但应该阻止它在按钮上拖动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21623893/
我是一名优秀的程序员,十分优秀!