Skip to content

Commit

Permalink
Cancel any previous hide view request before showing.
Browse files Browse the repository at this point in the history
  • Loading branch information
AxFree committed Oct 24, 2011
1 parent 48291c5 commit f72a28c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions GCDiscreetNotificationView/GCDiscreetNotificationView.m
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ - (void) hide:(BOOL)animated {
}

- (void) show:(BOOL)animated name:(NSString*) name {
[NSObject cancelPreviousPerformRequestsWithTarget:self selector:@selector(hideAnimated) object:nil];

[self showOrHide:NO animated:animated name:name];
}

Expand Down

0 comments on commit f72a28c

Please sign in to comment.