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.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Yes:
Make sure your annotation view has
enabled = YES
.Implement
-[MKMapViewDelegate mapView:didSelectAnnotationView:]
.In that callback, get
view
and change its properties.