From c3acb6d2f073ec93ad31baef90c58498c1513ac2 Mon Sep 17 00:00:00 2001 From: Jianfeng Date: Mon, 7 May 2012 07:32:02 +0800 Subject: [PATCH] fix bug for allow user interaction --- MTStatusBarOverlay.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/MTStatusBarOverlay.m b/MTStatusBarOverlay.m index e6faf2b..30410fc 100755 --- a/MTStatusBarOverlay.m +++ b/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