Skip to content

Commit

Permalink
Fix label hidden before the view is hidden, not after
Browse files Browse the repository at this point in the history
  • Loading branch information
gcamp committed Feb 4, 2013
1 parent 00dcd08 commit 62d119c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions GCDiscreetNotificationView/GCDiscreetNotificationView.m
Original file line number Diff line number Diff line change
Expand Up @@ -215,21 +215,23 @@ - (void) showOrHide:(BOOL)hide animated:(BOOL)animated name:(NSString *)name {
[self.superview bringSubviewToFront:self];
[self.activityIndicator startAnimating];
self.center = self.showingCenter;
self.label.hidden = NO;
}

[self placeOnGrid];

if (animated) [UIView commitAnimations];

self.label.hidden = hide;
}
}

#pragma mark -
#pragma mark Animations

- (void) animationDidStop:(NSString *)animationID finished:(BOOL) finished context:(void *) context {
if (animationID == GCHideAnimation) [self.activityIndicator stopAnimating];
if (animationID == GCHideAnimation) {
[self.activityIndicator stopAnimating];
self.label.hidden = YES;
}
else if (animationID == GCChangeProprety) {
NSString* showName = GCShowAnimation;

Expand Down

0 comments on commit 62d119c

Please sign in to comment.