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