Permalink
Browse files

Don't allow 2 sets of barber poles to ever happen.

  • Loading branch information...
1 parent 28b742e commit 61231957268ba822016fc792c3ab8a6fbc5aece7 Danny Greg committed May 25, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/UIKit/TUIProgressBar.m
@@ -262,6 +262,9 @@ - (void)setIndeterminate:(BOOL)indeterminate
return;
}
+ if (self.animationView != nil)
+ return; //We are already animating a barber pole
+
// Animation container
TUIView *animationClippingView = [[TUIView alloc] initWithFrame:[self fillRect]];
animationClippingView.clipsToBounds = YES;

0 comments on commit 6123195

Please sign in to comment.