Two coloured/custom line on MKPolylineRenderer
问题 I am drawing x amount of lines on an MKMapView . The data is being downloaded from a webservice and for each line that needs drawing I am creating a MKPolyline , adding it to an overlayArray (some overlays have more than one polyline) and finally adding that overlay to the map via: [self.mapView addOverlays:overlayArray];` The next function is therefore called which works wonderfully: - (MKOverlayRenderer *)mapView:(MKMapView *)mapView rendererForOverlay:(id<MKOverlay>)overlay { if (![overlay