diff --git a/SlideMenu/AppDelegate.m b/SlideMenu/AppDelegate.m index ea8e3a3..8e84687 100644 --- a/SlideMenu/AppDelegate.m +++ b/SlideMenu/AppDelegate.m @@ -23,7 +23,7 @@ [SlideNavigationController sharedInstance].rightMenu = rightMenu; [SlideNavigationController sharedInstance].leftMenu = leftMenu; - [SlideNavigationController sharedInstance].menuRevealAnimationDuration = .18; + [SlideNavigationController sharedInstance].menuRevealAnimationDuration = .18; // Creating a custom bar button for right menu UIButton *button = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 30, 30)]; diff --git a/SlideMenu/Helper Classes/RightMenuViewController.m b/SlideMenu/Helper Classes/RightMenuViewController.m index 1eddee5..37b8d66 100644 --- a/SlideMenu/Helper Classes/RightMenuViewController.m +++ b/SlideMenu/Helper Classes/RightMenuViewController.m @@ -80,38 +80,38 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { id revealAnimator; - CGFloat animationDuration = 0; + CGFloat animationDuration = 0; switch (indexPath.row) { case 0: revealAnimator = nil; - animationDuration = .19; + animationDuration = .19; break; case 1: revealAnimator = [[SlideNavigationContorllerAnimatorSlide alloc] init]; - animationDuration = .19; + animationDuration = .19; break; case 2: revealAnimator = [[SlideNavigationContorllerAnimatorFade alloc] init]; - animationDuration = .18; + animationDuration = .18; break; case 3: revealAnimator = [[SlideNavigationContorllerAnimatorSlideAndFade alloc] initWithMaximumFadeAlpha:.8 fadeColor:[UIColor blackColor] andSlideMovement:100]; - animationDuration = .19; + animationDuration = .19; break; case 4: revealAnimator = [[SlideNavigationContorllerAnimatorScale alloc] init]; - animationDuration = .22; + animationDuration = .22; break; case 5: revealAnimator = [[SlideNavigationContorllerAnimatorScaleAndFade alloc] initWithMaximumFadeAlpha:.6 fadeColor:[UIColor blackColor] andMinimumScale:.8]; - animationDuration = .22; + animationDuration = .22; break; default: @@ -119,7 +119,7 @@ } [[SlideNavigationController sharedInstance] closeMenuWithCompletion:^{ - [SlideNavigationController sharedInstance].menuRevealAnimationDuration = animationDuration; + [SlideNavigationController sharedInstance].menuRevealAnimationDuration = animationDuration; [SlideNavigationController sharedInstance].menuRevealAnimator = revealAnimator; }]; }