-(void)end{
NSLog(@"End Called");
}
UIImage *bPin = [UIImage imageNamed:@"BluePin.png"];
UIImage *gPin = [UIImage imageNamed:@"GreenPin.png"];
UIImage *rPin = [UIImage imageNamed:@"RedPin.png"];
UIImage *yPin = [UIImage imageNamed:@"YellowPin.png"];
UIImageView *image = [[UIImageView alloc]initWithFrame:CGRectMake(0,0,bPin.size.width,bPin.size.height)];
image.animationImages = [NSArray arrayWithObjects:
bPin,
rPin,
gPin,
yPin,
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];
}];
画像を void end メソッドに送信したいのですが、どうすればよいですか? 特定の画像をアニメーション化するには、そこで終了する必要があります...どうすれば送信できますか?????