Merge pull request #17 from nullproduction/master

Blocking gestures in minimized topViewController
- Gonna make some change to fix the glitch that happens when menu is open and device rotates
This commit is contained in:
Aryan Ghassemi 2014-02-02 12:00:45 -08:00
commit af932304ad
1 changed files with 4 additions and 2 deletions

View File

@ -308,7 +308,8 @@ static SlideNavigationController *singletonInstance;
- (void)openMenu:(Menu)menu withDuration:(float)duration andCompletion:(void (^)())completion
{
[self.topViewController.view addGestureRecognizer:self.tapRecognizer];
self.topViewController.view.userInteractionEnabled = NO;
[self.topViewController.navigationController.view addGestureRecognizer:self.tapRecognizer];
[self prepareMenuForReveal:menu forcePrepare:NO];
@ -329,7 +330,8 @@ static SlideNavigationController *singletonInstance;
- (void)closeMenuWithDuration:(float)duration andCompletion:(void (^)())completion
{
[self.topViewController.view removeGestureRecognizer:self.tapRecognizer];
self.topViewController.view.userInteractionEnabled = YES;
[self.topViewController.navigationController.view removeGestureRecognizer:self.tapRecognizer];
[UIView animateWithDuration:duration
delay:0