2012-02-21 68 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

相關問題