Я хочу показать несколько выводов на моем MapView, все с выводом Animation of Dropping, так как это возможно, если у какого-либо тела есть образец кода, пожалуйста, отправьте ссылку для отправки. Я новичок в этом поле. Спасибо заранее.
На developer.apple.com есть несколько примеров кода
Это
простой пример карты с двумя выводами
if([points retainCount] > 0) { [points release]; points = nil; } if([annotationAry retainCount] > 0) { [annotationAry release]; annotationAry = nil; } points = [[NSMutableArray alloc]init]; annotationAry = [[NSMutableArray alloc]init]; for(int i=0;i<[longitudeary count];i++) { CLLocation* currentLocation1 = [[CLLocation alloc] initWithLatitude:[[latitudeary objectAtIndex:i]doubleValue] longitude:[[longitudeary objectAtIndex:i]doubleValue]]; [points addObject:currentLocation1]; } for(int i=0;i<[points count];i++) { // CREATE THE ANNOTATIONS AND ADD THEM TO THE MAP CSMapAnnotation* annotation = nil; // create the start annotation and add it to the array annotation = [[[CSMapAnnotation alloc] initWithCoordinate:[[points objectAtIndex:i] coordinate] annotationType:CSMapAnnotationTypeImage title:@"123456..." shID:[shIDary objectAtIndex:i] catID:[catIDary objectAtIndex:i] ciggUse:[ciggaretteUSEary objectAtIndex:i] wifiUse:[wifiUSEary objectAtIndex:i] controller:self]autorelease]; [annotationAry addObject:annotation]; } [mapViewmy addAnnotations:[NSArray arrayWithArray:annotationAry]];
Так же, как вы показываете одиночный штырь .. сохраните код для одного штыря в петле и передайте в широту разную широту долготы. Вы получите пины в другом месте