当我重新加载UIWebView的内容时,制作一个Flip动画(或类似的东西) [英] Make a Flip animation (or something similar) when I reload the content of my UIWebView
本文介绍了当我重新加载UIWebView的内容时,制作一个Flip动画(或类似的东西)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的一个项目中,我仅使用UIWebView.当我用其他内容重新加载webView时需要动画(例如,翻转)...是否可以创建翻转动画(或类似内容)?我必须创建一个伪造的控制器才能得到它吗?解决方案?谢谢
In one of my project i'm using only a UIWebView. I need an animation (for example a flip) when I reload my webView with another content... Is it possible to create a flip animation (or something similar)? I must create a fake controller to get it? Solutions? Thanks
推荐答案
我认为您不需要为此创建控制器.您可以简单地添加如下内容:
I think that you don't need to create a controller for that. You can simply add something like that:
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.80];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:yourView cache:YES];
[UIView commitAnimations];
这篇关于当我重新加载UIWebView的内容时,制作一个Flip动画(或类似的东西)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文