Permalink
Browse files

Merge pull request #50 from jianfeng/master

Use UIViewAnimationOptionAllowUserInteraction When overlay is disappearing.
  • Loading branch information...
2 parents b5d11dd + c3acb6d commit 75e499cd84355fcc7629eee166be0cc3671fe46e @myell0w committed May 7, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 MTStatusBarOverlay.m
View
5 MTStatusBarOverlay.m
@@ -775,7 +775,10 @@ - (void)hide {
[self setDetailViewHidden:YES animated:YES];
// hide status bar overlay with animation
- [UIView animateWithDuration:self.shrinked ? 0. : kAppearAnimationDuration animations:^{
+ [UIView animateWithDuration:self.shrinked ? 0. : kAppearAnimationDuration
+ delay:0
+ options:UIViewAnimationOptionAllowUserInteraction
+ animations:^{
[self setHidden:YES useAlpha:YES];
} completion:^(BOOL finished) {
// call delegate

0 comments on commit 75e499c

Please sign in to comment.