gpt4 book ai didi

cocoa-touch - MKMapView removeAnnotation 未删除选定的注释

转载 作者:行者123 更新时间:2023-12-02 23:46:50 25 4
gpt4 key购买 nike

当我调用removeAnnotation并将其传递给我添加的注释的指针时,它并没有删除注释...这是因为它在我添加注释时复制了注释吗?

谢谢德肖恩

最佳答案

你可以试试这个

nsarray *oldAnnotations=[self.mapview annotations];
[self.mapview removeAnnotations:oldAnnotations];

关于cocoa-touch - MKMapView removeAnnotation 未删除选定的注释,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6876662/

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