I just followed this tutorial tu draw a route on maps in iOS 7 http://www.techotopia.com/index.php/Using_MKDirections_to_get_iOS_7_Map_Directions_and_Routes
It's great, but i can't find how to draw the alternative routes on a different colour, and change colour when i touch each route. With this code, all routes are drawn with the same colour:
- (MKOverlayRenderer *)mapView:(MKMapView *)mapView rendererForOverlay:(id < MKOverlay >)overlay
{
MKPolylineRenderer *renderer =
[[MKPolylineRenderer alloc] initWithOverlay:overlay];
renderer.strokeColor = [UIColor blueColor];
renderer.lineWidth = 5.0;
return renderer;
}
Any ideas? Thanks in advice