tags:

views:

26

answers:

1

right now i can show current and destination now i want a dummu pin in midway say any location but i want to know how to add 3 pins in mapif(annotation != mapView.userLocation) {NSLog(@"marked"); static NSString *defaultPinID = @"com.invasivecode.pin"; pinView = (MKPinAnnotationView *)[mapView dequeueReusableAnnotationViewWithIdentifier:defaultPinID]; if ( pinView == nil ) pinView = [[[MKPinAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:defaultPinID] autorelease];

    pinView.pinColor = MKPinAnnotationColorGreen;
    pinView.canShowCallout = YES;
    pinView.animatesDrop = YES;

}

A: 

Did you try searching stackoverflow for the answer before posting the question? coz this has been asked multiple times e.g. this question

See the answers for the same.

lukya