I create animation with scale button when user make edit mode. Animation start but, when I scroll cells it is repeat.
Any suggestion?
Conde in drawRect
CABasicAnimation *fullRotation1 = [CABasicAnimation animationWithKeyPath:@"transform.scale"];
fullRotation1.fromValue = [NSNumber numberWithFloat:0];
fullRotation1.toValue = [NSNumber numberWithFloat:1];
fullRotation1.duration = 0.3;
fullRotation1.repeatCount = 1;
fullRotation1.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
[self.deleteButton.layer addAnimation:fullRotation1 forKey:@"scale"];
drawRect
is not where you should be calling an animation function. Try something more like this: