Skip to content

Commit

Permalink
Refactor restartLabel to shutdown label prior to possible restart.
Browse files Browse the repository at this point in the history
  • Loading branch information
cbpowell committed Dec 6, 2015
1 parent 0c1b80b commit f2fa5c5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions MarqueeLabel.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down

0 comments on commit f2fa5c5

Please sign in to comment.