I just read this thread, since I never had to draw my own routes inside MKMapView, but ...
MKPolyLine, MapKit method and protocol method MKMapViewDelegate mapView:(MKMapView *) viewForOverlay:(id < MKOverlay >) will be the solution.
Apple documentation on MKPolyLine and mapView: viewForOverlay:
Sample project
A quick example that demonstrates a common trap when learning to draw MKPolyLines
Edit
23:07:06.597 KMLViewer[2407:c07] Application windows are expected to have a root view controller at the end of application launch
is that you did not explicitly specify Xcode, whose view controller is the initial view controller.
You need to either replace [window addSubview:[someController view]]; on
[self.window setRootViewController:someController]
in applicationDidFinishLaunchingWithOptions:
or make sure your main.m indicates a suitable delegate
retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate");
or (for storyboard) set the storyboard as the main storyboard in the build settings
source share