何らかの理由で、コードを使用するだけの場合:
[UIView animateWithDuration:.5 delay:0
options:UIViewAnimationOptionCurveEaseInOut
animations:^{
CGRect newDescriptFrame = [self.summaryTextField frame];
newDescriptFrame.size.height = (bkgndRect.size.height - kbSize.height) - ((newDescriptFrame.origin.y) + 10);
self.descriptionTextView.frame = newDescriptFrame;
}
completion:^(BOOL finished){
}];
うまく動きますが、descriptionTextView
これと一緒に別のアニメーションブロックを追加すると。
[UIView animateWithDuration:.3 delay:.5
options:UIViewAnimationOptionCurveEaseInOut
animations:^{
self.summaryLabel.alpha = 0.0;
self.summaryLabel.alpha = 1.0;
}
completion:^(BOOL finished){}];
2番目のdescriptionTextView
ブロックがアニメーション化されると、アニメーションの前の元の位置に戻ります。なぜこれが起こるのですか?どうすれば修正できますか?フレームの変更と同じブロックでアルファの変更を移動すると。フレームの変更はまったくアニメーション化されません。