From a3cd24cde5e1334758369d5cfc8638dea209797d Mon Sep 17 00:00:00 2001 From: Feather Date: Thu, 18 Apr 2013 19:12:29 +0800 Subject: [PATCH] hide background image after swtiching --- Src/MLNavigationController.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Src/MLNavigationController.m b/Src/MLNavigationController.m index 4707e50..ef5266c 100644 --- a/Src/MLNavigationController.m +++ b/Src/MLNavigationController.m @@ -152,6 +152,8 @@ [self.backgroundView addSubview:blackMask]; } + self.backgroundView.hidden = NO; + if (lastScreenShotView) [lastScreenShotView removeFromSuperview]; UIImage *lastScreenShot = [self.screenShotsList lastObject]; @@ -180,6 +182,7 @@ [self moveViewWithX:0]; } completion:^(BOOL finished) { _isMoving = NO; + self.backgroundView.hidden = YES; }]; } @@ -191,6 +194,7 @@ [self moveViewWithX:0]; } completion:^(BOOL finished) { _isMoving = NO; + self.backgroundView.hidden = YES; }]; return;