iOS----点赞动画

2017-09-14 11:36:03来源:CSDN作者:u010960265人点击

分享
  1. -(void)praiseAnimateWithView:(UIView *)view  
  2. {  
  3.     [UIView animateWithDuration:0.25 animations:^{  
  4.         view.transform = CGAffineTransformMakeScale(1.21.2); //放大  
  5.     } completion:^(BOOL finished) {  
  6.         [UIView animateWithDuration:0.25 animations:^{  
  7.             view.transform = CGAffineTransformMakeScale(0.90.9); //缩小  
  8.         } completion:^(BOOL finished) {  
  9.             [UIView animateWithDuration:0.25 animations:^{  
  10.                 view.transform = CGAffineTransformMakeScale(1.01.0); //正常  
  11.             } completion:^(BOOL finished) {  
  12.                   
  13.             }];  
  14.         }];  
  15.     }];  
  16. }  

最新文章

123

最新摄影

微信扫一扫

第七城市微信公众平台