after a long search with no results, maybe someone knows the answer to the following problem:
I have a UIView that contains a UIWebView as a subtitle. UIView is just a shell, so I can place buttons, etc. On top of the UIWebView. Now I want to animate the resizing and moving of the UIView and UIWebView at the same time. I want it to look like only the UIWebView has been changed. I tried various animation methods: block / commit, implicit / explicit, for example:
[UIView beginAnimations:@"zoomIn" context:nil]; [UIView setAnimationDuration:1.0]; myWrapperUIView.frame = CGRect(0.0, 0.0, 500.0, 500.0); myUIWebView.frame = CGRect(0.0, 0.0, 500.0, 500.0); [UIView commitAnimations];
but I always get a result that UIView supports the right view, but the UIWebView inside instantly switches to a new frame, so if I zoom in from a larger frame, the space around the UIWebView will be reduced, which is reduced during the animation.
I also tried the inline animation for UIWebView, but the same result.
My question is:
Is there a way to simultaneously animate both views so that UIWebWill fills in the UIView at any given time?
Thanks,
Michael
source share