Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #95 from evanlong/master

Window didn't fade away for the case where we dismiss the hudview without an animation
  • Loading branch information...
commit bd476f8c6fb0abd3ab7109a949e0c8056746b042 2 parents be78804 + 043e29d
@soffes soffes authored
Showing with 5 additions and 4 deletions.
  1. +5 −4 SSToolkit/SSHUDView.m
View
9 SSToolkit/SSHUDView.m
@@ -282,11 +282,12 @@ - (void)dismissAnimated:(BOOL)animated {
[UIView setAnimationDuration:0.2];
self.alpha = 0.0f;
[UIView commitAnimations];
-
+
+ [UIView beginAnimations:@"SSHUDViewFadeOutWindow" context:nil];
+ _hudWindow.alpha = 0.0f;
+ [UIView commitAnimations];
+
if (animated) {
- [UIView beginAnimations:@"SSHUDViewFadeOutWindow" context:nil];
- _hudWindow.alpha = 0.0f;
- [UIView commitAnimations];
[self performSelector:@selector(_removeWindow) withObject:nil afterDelay:0.3];
} else {
[self _removeWindow];
Please sign in to comment.
Something went wrong with that request. Please try again.