Open liwenDeng opened 8 years ago
Line.m 文件中动画执行完后未移除动画,会导致无限调用initWithLayer: 和 drawInContext:方法 `
(void)animationDidStop:(CAAnimation *)anim finished:(BOOL)flag{
if (flag) { initialSelectedLineLength = self.selectedLineLength; lastContentOffsetX = (self.selectedLineLength / DISTANCE) * self.bindScrollView.frame.size.width; //[self removeAllAnimations]; } } `
Line.m 文件中动画执行完后未移除动画,会导致无限调用initWithLayer: 和 drawInContext:方法 `
(void)animationDidStop:(CAAnimation *)anim finished:(BOOL)flag{
if (flag) { initialSelectedLineLength = self.selectedLineLength; lastContentOffsetX = (self.selectedLineLength / DISTANCE) * self.bindScrollView.frame.size.width; //[self removeAllAnimations]; } } `