diff --git a/TWTSideMenuViewController/TWTSideMenuViewController.m b/TWTSideMenuViewController/TWTSideMenuViewController.m index 756c340..adee071 100644 --- a/TWTSideMenuViewController/TWTSideMenuViewController.m +++ b/TWTSideMenuViewController/TWTSideMenuViewController.m @@ -307,7 +307,6 @@ - (void)setMainViewController:(UIViewController *)mainViewController animated:(B incomingViewController.view.frame = self.containerView.bounds; - //Create default animation curve. UIViewAnimationOptions options = UIViewAnimationOptionCurveEaseInOut; switch (self.animationType) { @@ -318,9 +317,8 @@ - (void)setMainViewController:(UIViewController *)mainViewController animated:(B break; } case TWTSideMenuAnimationTypeFadeIn: - incomingViewController.view.alpha = .6; + incomingViewController.view.alpha = 0.6f; options = UIViewAnimationOptionCurveEaseOut; - break; } @@ -331,7 +329,7 @@ - (void)setMainViewController:(UIViewController *)mainViewController animated:(B incomingViewController.view.transform = CGAffineTransformIdentity; break; case TWTSideMenuAnimationTypeFadeIn: - incomingViewController.view.alpha = 1; + incomingViewController.view.alpha = 1.0f; default: break; }