2

I am developing an application that almost replicates Apple maps application behavior. When i touch a route, i need to change its color to blue and change the other ones colors to gray. Is there an efficient way to accomplish this without having to remove the overlays and adding them again ? Thanks.

rokridi
  • 1,565
  • 2
  • 11
  • 20

1 Answers1

0

Yes:

  1. Make sure your annotation view has enabled = YES.

  2. Implement -[MKMapViewDelegate mapView:didSelectAnnotationView:].

  3. In that callback, get view and change its properties.

incanus
  • 5,100
  • 1
  • 13
  • 20