Guest User

Untitled

a guest
Jul 29th, 2012
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. change annotation image after its created
  2. //carAnnotation is your id<MKAnnotation> object
  3. MKAnnotationView *av = [mapView viewForAnnotation:carAnnotation];
  4. if (carAnnotation.isMoving)
  5. av.image = [UIImage imageNamed:@"moving.png"];
  6. else
  7. av.image = [UIImage imageNamed:@"stopped.png"];
Advertisement
Add Comment
Please, Sign In to add comment