简体   繁体   English

代码为imageview产生涟漪效果

[英]code to make a ripple effect for imageview

I am developing one iphone app for aquarium. 我正在为水族馆开发一个iPhone应用程序。 In that i have to make ripple effect for fish image. 在这种情况下,我必须对鱼图像做出涟漪效应。

[UIView beginAnimations:@"suck" context:NULL];
[UIView setAnimationDuration:1.0];
[UIView setAnimationTransition:110 forView:viw_mainfish cache:NO];
[UIView commitAnimations];

I tried with above coding but its not working. 我尝试了上述编码,但无法正常工作。 Other effects are working,but i don't no why ripple effect is not working. 其他效果还在起作用,但是我不知道为什么波纹效果不起作用。 i am new to developing. 我是新来的。 So anyone can help me pls. 这样任何人都可以帮助我。

101     pageCurl    
102     pageUnCurl      
103     suckEffect  
104     spewEffect  
105     cameraIris  
106     cameraIrisHollowClose   
107     cameraIrisHollowOpen    
108     genieEffect 
[animation setType:@"rippleEffect" ];

要么

[UIView setAnimationTransition:(UIViewAnimationTransition)110 forView: viw_mainfish cache:NO];

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM