1
现在我可以显示当前和目标,现在我想一个虚设接脚中途说的任何位置,但我想知道如何添加3个引脚在地图如何添加多个注释为iPhone
if(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;
}