Iphone 基于视图的应用程序中的水效果

Iphone 基于视图的应用程序中的水效果,iphone,xcode,uiview,effects,distortion,Iphone,Xcode,Uiview,Effects,Distortion,我在xcode中使用一个基于视图的应用程序,我想做一个效果:像这样的水效果。在这个视频中,有人使用opengl es,我不知道没有它是可能的。以下代码用于水滴效果 -(IBAction)btnActionTapped:(id)sender{ CATransition *animation=[CATransition animation]; [animation setDelegate:self]; [animation setDuration:1.75]; [an

我在xcode中使用一个基于视图的应用程序,我想做一个效果:像这样的水效果。在这个视频中,有人使用opengl es,我不知道没有它是可能的。

以下代码用于水滴效果

-(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];
}

什么是yepNop=是;确切地说?:)为了显示视图标志usesCan,请简要说明imgV和imgV2是什么数据类型,以及为什么需要将它们设置为隐藏或不隐藏?