UIImageView *image = [[UIImageView alloc] initWithFrame:self.view.bounds];
image.animationImages = [NSArray arrayWithObjects:
[UIImage imageNamed:@"BluePin.png"],
[UIImage imageNamed:@"GreenPin.png"],
[UIImage imageNamed:@"RedPin.png"],
[UIImage imageNamed:@"YellowPin.png"],
nil];
image.animationRepeatCount = 0;
image.animationDuration = 1.0;
[image startAnimating];
[image setFrame: CGRectMake(point.x-(image.bounds.size.width/2), point.y- (image.bounds.size.width/2), image.bounds.size.width, image.bounds.size.height)];
[self.view addSubview: image];
[UIView animateWithDuration:2.0 delay:1.0 options:UIViewAnimationOptionCurveLinear animations:^{
[image setAlpha:0.0];
} completion:^(BOOL finished) {
[image removeFromSuperview];
}];
画像が大きすぎるので、元のサイズにする必要があります 基本的に、ユーザーが触れる場所に画像アニメーションを作成し、x秒後に消えます