朋友圈点赞效果👍

96
KermitX
2016.11.21 18:01* 字数 5
效果图

直接上代码

        [_likeBtn setImage:_IMG(@"ProLikeNor") forState:UIControlStateNormal];
        
        CAKeyframeAnimation * animation = [CAKeyframeAnimation animationWithKeyPath:@"transform.scale"];
        animation.values = @[@(0.1),@(1.0),@(1.5)];
        animation.keyTimes = @[@(0.0),@(0.5),@(0.8),@(1.0)];
        animation.calculationMode = kCAAnimationLinear;
        [self.likeBtn.layer addAnimation:animation forKey:@"SHOW"];
iOS_OC收纳箱