私は次のコードを持っています:
[UIView animateWithDuration:2.0 delay:0.0 options:UIViewAnimationOptionAllowUserInteraction
animations:^{
imageView.bounds = endBounds;
}
completion:^(BOOL finished) {
[UIView animateWithDuration:2.0 delay:0.5 options:UIViewAnimationOptionAllowUserInteraction
animations:^{
imageView.bounds = startBounds;
}
completion:^(BOOL finished) {
[imageView removeFromSuperview];
}];
}];
さらに私は持っています:
[imageView setUserInteractionEnabled:YES];
そして、imageViewをタップするユーザーを処理するタップジェスチャレコグナイザーセット。最初のアニメーションが発生している間、ジェスチャレコグナイザーは予想どおりに起動します。しかし、完了ブロックから連鎖アニメーション中にimageViewをタップしようとすると、適切なオプションを設定しても何も起こりません。
誰か考えがありますか?グーグルで答えが見つかりません。