From f2fa5c5628ad8cc55cd085adeb8894eba1bcb0be Mon Sep 17 00:00:00 2001 From: Charles Powell Date: Sun, 6 Dec 2015 15:43:47 -0700 Subject: [PATCH] Refactor restartLabel to shutdown label prior to possible restart. --- MarqueeLabel.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MarqueeLabel.m b/MarqueeLabel.m index 9e60c24f..de1cffc4 100755 --- a/MarqueeLabel.m +++ b/MarqueeLabel.m @@ -958,6 +958,9 @@ - (void)animationDidStop:(CAAnimation *)anim finished:(BOOL)flag { #pragma mark - Label Control - (void)restartLabel { + // Shutdown the label + [self shutdownLabel]; + // Restart scrolling if appropriate if (self.labelShouldScroll && !self.tapToScroll && !self.holdScrolling) { [self beginScroll]; }