画像などの表示時にふわぁ〜っという感じで表示させることがあるかと思います。
しかし、下記のように実装してしまうと、アニメーション実行最中は画面タップに反応しなくなってしまいます。
option未指定
imageView.alpha = 0.0;
[UIView animateWithDuration:0.8
animations:^{
imageView.alpha = 1.0;
}];
animateWithDurationにはoptionを指定できるメソッドが用意されているので、下記のようにUserInteractionを有効化してあげると、思った通りの動作をするようです。
option指定
imageView.alpha = 0.0;
[UIView animateWithDuration:0.8
delay:0
options:UIViewAnimationOptionAllowUserInteraction
animations:^{
imageView.alpha = 1.0;
}
completion:nil];