Search code examples
iphoneuiimageviewimage-manipulationripple

iPhone - having a Ripple effect on a UIImageView


I am attempting to create a ripple like effect on an imageView when it is touched down on, however I do not understand how to implement OpenGL for windows and porting it to iOS. I have attempted to use http://www.codeproject.com/KB/openGL/dsaqua.aspx as well as cocos2d however I find the latter completely and utterly confusing. Would anyone be willing to give some suggestions or can point me in the right direction?

Many thanks!


Solution

  • Use below for ripple effect in iPhone

    [UIView beginAnimations:nil context:NULL];
    [UIView setAnimationDuration:1.0];
    [UIView setAnimationTransition:(UIViewAnimationTransition) 110 forView:view cache:NO];
    [UIView commitAnimations];
    

    For more effects you can check this link :

    http://www.iphonedevwiki.net/index.php?title=UIViewAnimationState