Skip to content

Commit

Permalink
Merge pull request #6 from nochkin/master
Browse files Browse the repository at this point in the history
Mergin the patch from SVProgressHUD
  • Loading branch information
samvermette committed Nov 5, 2012
2 parents ebd0473 + 9962336 commit fbd53f3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions SVStatusHUD/SVStatusHUD.m
Expand Up @@ -124,7 +124,7 @@ - (void)showWithImage:(UIImage *)image status:(NSString *)string duration:(NSTim
self.imageView.image = image;

[self setStatus:string];
[self.overlayWindow makeKeyAndVisible];
[self.overlayWindow setHidden:NO];
[self positionHUD:nil];

if(self.alpha != 1) {
Expand Down Expand Up @@ -202,11 +202,10 @@ - (void)dismiss {
completion:^(BOOL finished){
if(sharedView.alpha == 0) {
[[NSNotificationCenter defaultCenter] removeObserver:sharedView];
[overlayWindow removeFromSuperview];
[overlayWindow release], overlayWindow = nil;
[sharedView release], sharedView = nil;

[[UIApplication sharedApplication].windows.lastObject makeKeyAndVisible];

// uncomment to make sure UIWindow is gone from app.windows
//NSLog(@"%@", [UIApplication sharedApplication].windows);
}
Expand Down

0 comments on commit fbd53f3

Please sign in to comment.