using a UIView as MKMapView subview to draw a route
Hi!Before anything i'm sorry for my bad english.
I'm trying to draw a route in a UIView and set that view as a MKMapView.
Now i have a UIView class (ViewClass) where i put all the touches methods and set the view of my viewcontroller as an instance of that class. The MKMapView is a viewcontroller.view subview. I can get all the touches in MKMapView. To draw a trail I set a UIView (trailView) as MKMapView subview with background color clear. I try to move the trailView when the MKMapView is moving but i'm not getting good results.The movement isn't perfect.
The idea is to have the view attached to the MKMapView. I don't know if it is possible or if i really have to use MKAnnotationView. I've tried before with MKAnnotationView but that consumes many memory.
I really appreciate some help. Thanks in advance.
|