I\'m adding several annotations to a MapView and using a custom image instead of the default pins. I am using the viewForAnnotation
delegate method to set the c
Don't use MKPinAnnotationView - just use MKAnnotationView.
I think I got it. I ended up having to subclass MKAnnotationView.
MKAnnotationView* pinView = [[[MKAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:AnnotationIdentifier] autorelease];
pinView.animatesDrop=YES;
pinView.canShowCallout=YES;
pinView.image=[UIImage imageNamed:@"userMain.png"];
Don't give MKPinAnnotation
its takes default pin annotation. Use only MKAnnotationView
object and don't use:
pinView.animatesDrop=YES;