Post

Replies

Boosts

Views

Activity

MapKit: Selecting and deselecting annotation
Hi there, I am using MapKit for my tvOS appI got a problem and I don't know how to solve itHere is the problem:I had lots of annotations on my mapView, I selected one of them by using siri remote and it changed annotation view and showed up custom callout viewbut I don't know how to deselect the annotation which was selected...I had tried open func deselectAnnotation(_ annotation: MKAnnotation?, animated: Bool)but MapKit will find next annotation to select immediately! and the property "selectedAnnotations: [MKAnnotation]" always has item!so I cant deselectIs there any solution for this?many thanks!
2
0
3.1k
May ’17