From ac723a28f64009b905ae89e91d23837ef6cc3c6f Mon Sep 17 00:00:00 2001 From: Kevin Harwood Date: Fri, 26 Jul 2013 08:51:46 -0500 Subject: [PATCH] Setting a valid transform value for a two visual state blocks --- MMDrawerController/MMDrawerVisualState.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MMDrawerController/MMDrawerVisualState.m b/MMDrawerController/MMDrawerVisualState.m index 1a366c6b..1d58e404 100644 --- a/MMDrawerController/MMDrawerVisualState.m +++ b/MMDrawerController/MMDrawerVisualState.m @@ -32,7 +32,7 @@ +(MMDrawerControllerDrawerVisualStateBlock)slideAndScaleVisualStateBlock{ CGFloat maxDistance = 50; CGFloat distance = maxDistance * percentVisible; - CATransform3D translateTransform; + CATransform3D translateTransform = CATransform3DIdentity; UIViewController * sideDrawerViewController; if(drawerSide == MMDrawerSideLeft) { sideDrawerViewController = drawerController.leftDrawerViewController; @@ -117,7 +117,7 @@ +(MMDrawerControllerDrawerVisualStateBlock)parallaxVisualStateBlockWithParallaxF MMDrawerControllerDrawerVisualStateBlock visualStateBlock = ^(MMDrawerController * drawerController, MMDrawerSide drawerSide, CGFloat percentVisible){ NSParameterAssert(parallaxFactor >= 1.0); - CATransform3D transform; + CATransform3D transform = CATransform3DIdentity; UIViewController * sideDrawerViewController; if(drawerSide == MMDrawerSideLeft) { sideDrawerViewController = drawerController.leftDrawerViewController;