iOS 放大缩小动画嵌套实现

    self.yuntaiCameraView.collectBtn.transform = CGAffineTransformMakeScale(2.5, 2.5);

    [UIView animateWithDuration:2

                     animations:^{

                         self.yuntaiCameraView.collectBtn.transform = CGAffineTransformMakeScale(1.2, 1.2);

                         [self.yuntaiCameraView.collectBtn setHighlighted:YES];

                     }completion:^(BOOL finish){

                         [UIView animateWithDuration:2

                                          animations:^{

                                              self.yuntaiCameraView.collectBtn.transform = CGAffineTransformMakeScale(0.8, 0.8);

                                          }completion:^(BOOL finish){

                                              [UIView animateWithDuration:3

                                                               animations:^{

                                                                   self.yuntaiCameraView.collectBtn.transform = CGAffineTransformMakeScale(1, 1);

                                                               }completion:^(BOOL finish){

                                                                   [self.yuntaiCameraView.collectBtn setHighlighted:NO];

 

                                                               }];

                                          }];

                     }];

posted @ 2016-09-28 15:48  elsonpeng  阅读(3883)  评论(0编辑  收藏  举报