이 당신이
- (void)mapView:(MKMapView *)mapView didAddAnnotationViews:(NSArray *)views {
static BOOL seeded = NO;
if(!seeded)
{
seeded = YES;
srandom(time(NULL));
}
MKAnnotationView *aV;
for (aV in views) {
if([aV isKindOfClass:[MKUserLocation class]]) continue;
CGRect endFrame = aV.frame;
aV.frame = CGRectMake(aV.frame.origin.x, aV.frame.origin.y, aV.frame.size.width/2, aV.frame.size.height/2);
[UIView beginAnimations:nil context:NULL];
CGFloat randTime = (CGFloat) random()/(CGFloat) RAND_MAX;
[UIView setAnimationDuration:randTime];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
[aV setFrame:endFrame];
[UIView commitAnimations];
}
}
를 시작하는 데 도움이 될 수 있습니다