MKPolyLineRenderer changes color without removing the overlay

I am developing an application that almost reproduces the behavior of Apple applications. When I touch a route, I need to change its color to blue and change other colors to gray. Is there an effective way to do this without removing the overlays and adding them again? Thanks.

+1
source share
1 answer

Yes:

  • Make sure your annotation view has enabled = YES .

  • Embed -[MKMapViewDelegate mapView:didSelectAnnotationView:] .

  • In this callback, get view and change its properties.

0
source

All Articles