Skip to main content

water effect in a view based application



I'm using a view based application in xcode and I would like to do an effect: water effect like this video .In this video the guy use opengl es And I don't know it it's possible without.




Comments

  1. greg rock

    Following code is use for the water drop effect,

    -(IBAction)btnActionTapped:(id)sender{
    CATransition *animation=[CATransition animation];
    [animation setDelegate:self];
    [animation setDuration:1.75];
    [animation setTimingFunction:UIViewAnimationCurveEaseInOut];
    [animation setType:@"rippleEffect"];

    [animation setFillMode:kCAFillModeRemoved];
    animation.endProgress=0.99;

    imgV.hidden=YES;
    imgV2.hidden=NO;


    [animation setRemovedOnCompletion:NO];
    [self.view.layer addAnimation:animation forKey:nil];
    }


    This code may helping to you.

    Happy codeing.

    ReplyDelete

Post a Comment

Popular posts from this blog

Slow Android emulator

I have a 2.67 GHz Celeron processor, 1.21 GB of RAM on a x86 Windows XP Professional machine. My understanding is that the Android emulator should start fairly quickly on such a machine, but for me it does not. I have followed all instructions in setting up the IDE, SDKs, JDKs and such and have had some success in staring the emulator quickly but is very particulary. How can I, if possible, fix this problem?