5
我想知道是否有一种方法来动画UIWebView的大小和位置。 如果我折腾这样的:UIWebView和动画
[UIView animateWithDuration:1.0 animations:^{
self.frame = CGRectMake(20.0, 20.0, 80.0, 80.0);
}];
或
[UIView beginAnimations:@"zoomIn" context:nil];
[UIView setAnimationDuration:2.75];
[UIView setAnimationDelegate: self];
self.frame = CGRectMake(20.0, 20.0, 80.0, 80.0);
[UIView commitAnimations];
同时有一个灰色的框做动画, 的web视图的内容瞬间切换到新的大小没有动画。 (scalesPageToFit属性设置为YES)
有什么建议吗?