Permalink
Browse files

Add method to hide spinner in activity indicator

  • Loading branch information...
1 parent 54be645 commit ba897676e3a34633e27ed67ec93d5a2c1245f290 @deardaniel deardaniel committed Mar 29, 2012
Showing with 7 additions and 1 deletion.
  1. +1 −0 Classes/ShareKit/UI/SHKActivityIndicator.h
  2. +6 −1 Classes/ShareKit/UI/SHKActivityIndicator.m
@@ -54,6 +54,7 @@
- (void)setCenterMessage:(NSString *)message;
- (void)setSubMessage:(NSString *)message;
- (void)showSpinner;
+- (void)hideSpinner;
- (void)setProperRotation;
- (void)setProperRotation:(BOOL)animated;
@@ -191,7 +191,7 @@ - (void)setCenterMessage:(NSString *)message
}
centerMessageLabel.text = message;
- [spinner removeFromSuperview];
+ [self hideSpinner];
}
}
@@ -240,6 +240,11 @@ - (void)showSpinner
[spinner startAnimating];
}
+- (void)hideSpinner
+{
+ [spinner removeFromSuperview]
+}
+
#pragma mark -
#pragma mark Rotation

0 comments on commit ba89767

Please sign in to comment.