2012-02-21 94 views

回答

3

以下代码是使用了水滴的效果,

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

什么是yepNop = YES;究竟? :) – 2012-02-21 12:46:46

+0

这对于显示视图标志使用 – 2012-02-21 13:11:10

+1

你可以很快解释什么样的数据类型imgV和imgV2是为什么有必要设置它们隐藏或不? – matzino 2012-02-21 15:55:54

相关问题