UIWebViewを使用してUIViewのサイズを変更し、アニメーションを使用してサブビューとしてUIToolbarのサイズを変更したいと思います。したがって、次のコードを使用します。
[UIView animateWithDuration:0.3 delay:0 options:UIViewAnimationCurveEaseInOut animations:^{
self.outerView.frame = CGRectMake(self.outerView.frame.origin.x, self.outerView.frame.origin.y, self.outerView.frame.size.width - 400, self.outerView.frame.size.height);
} completion:^(BOOL finished) {
}];
UIToolbarは予想どおりアニメーションに合わせてサイズ変更されますが、アニメーションの終了後、UIWebViewのコンテンツは新しいサイズに直接ジャンプします。
アニメーションをUIWebViewにも適用する方法を知っている人はいますか?