私は非常に単純なタスクに困惑しています.UIViewアニメーションでイーズイン/イーズアウトを行いたいのですが、正しいanimationOptionを使用しているにもかかわらず、常に線形です。
すべてのアカウントで機能するはずのコードを次に示します。これは UIViewControllerAnimatedTransitioning クラスに設定されていますが、以前のカスタム セグエ クラスでも同じ問題が発生しています。
[UIView animateWithDuration:0.4f delay:0.0f options:UIViewAnimationOptionCurveEaseInOut animations:^(void) {
self.dimView.alpha = 1.0;
self.imageView.frame = self.destinationRect;
} completion:^(BOOL finished) {
[self.imageView removeFromSuperview];
[self.dimView removeFromSuperview];
[transitionContext completeTransition:YES];
}];
ただし、次のコードを使用した春のアニメーションは機能しますが、これはやりたくありません。
[UIView animateWithDuration:0.8f delay:0 usingSpringWithDamping:0.7f initialSpringVelocity:2.0f options:UIViewAnimationOptionCurveEaseInOut animations:^(void) {
self.dimView.alpha = 1.0;
self.imageView.frame = self.destinationRect;
} completion:^(BOOL finished){
[self.imageView removeFromSuperview];
[self.dimView removeFromSuperview];
[transitionContext completeTransition:YES];
}];
シミュレーターと iPad2 テスト デバイスで同じ動作が得られます。私は何か間違ったことをしていますか?フレームまたはアルファ値のアニメーション化に問題はありますか?