Remove MKMapView Annotations with a certain pinColor?

后端 未结 2 1502
死守一世寂寞
死守一世寂寞 2020-12-16 06:56

Is it possible to remove all annotations on a given MKMapView of a given pinColor? I\'m trying to clear all user-entered annotations (pins) on my map before displaying new o

2条回答
  •  醉梦人生
    2020-12-16 07:24

    Maybe keeping each group of annotations in an array (NSMutableArray) of pointers to those annotations and then removing only them?

提交回复
热议问题