Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- change annotation image after its created
- //carAnnotation is your id<MKAnnotation> object
- MKAnnotationView *av = [mapView viewForAnnotation:carAnnotation];
- if (carAnnotation.isMoving)
- av.image = [UIImage imageNamed:@"moving.png"];
- else
- av.image = [UIImage imageNamed:@"stopped.png"];
Advertisement
Add Comment
Please, Sign In to add comment