gpt4 book ai didi

ios - 创建可拖动的引脚注释,但应该阻止它在按钮上拖动

转载 作者:塔克拉玛干 更新时间:2023-11-02 21:36:46 25 4
gpt4 key购买 nike

我已经创建了可拖动的图钉注释并且它工作得很好,问题是我不想在特定的按钮点击上拖放图钉,甚至不想重新加载 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com