CABasicAnimation *anim = [CABasicAnimation animation]; anim.keyPath = @"transform.scale"; anim.toValue = @0.5; anim.repeatCount = MAXFLOAT; [_heartImageV.layer addAnimation:anim forKey:nil];
CABasicAnimation来做心跳动画
原文:http://www.cnblogs.com/liuw-flexi/p/7525776.html