views:

97

answers:

0

Hi!

I'm drawing a route like it's done in http://spitzkoff.com/craig/?p=81 but i'm not loading de coordinates from a file, i get the coordinates from GPS with CLLocationManager.

The problem is that my app crash with low memory in the device. I guess it's the way i'm drawing the route.

In - (MKAnnotationView *)mapViewMKMapView *)_mapView viewForAnnotationid )annotation i can use dequeueReusableAnnotationViewWithIdentifier: like i do for the PinAnnotation? And if doesn't exist i can make initWithAnnotation:annotation reuseIdentifier: ?

Should this solve my problem?

Does AnnotationView's consume much memory?

Thanks!And sorry for my bad english