diff --git a/ADTransitionController/ADNavigationControllerDelegate.h b/ADTransitionController/ADNavigationControllerDelegate.h index 0a99d12..03456bb 100644 --- a/ADTransitionController/ADNavigationControllerDelegate.h +++ b/ADTransitionController/ADNavigationControllerDelegate.h @@ -6,7 +6,7 @@ // Copyright (c) 2013 Applidium. All rights reserved. // -#import +#import @interface ADNavigationControllerDelegate : NSObject diff --git a/ADTransitionController/ADTransitioningDelegate.m b/ADTransitionController/ADTransitioningDelegate.m index 8b4246d..b1f242c 100644 --- a/ADTransitionController/ADTransitioningDelegate.m +++ b/ADTransitionController/ADTransitioningDelegate.m @@ -74,9 +74,7 @@ - (void)animateTransition:(id)transitionCo sublayerTransform.m34 = 1.0 / -AD_Z_DISTANCE; containerView.layer.sublayerTransform = sublayerTransform; - UIView * wrapperView = [[ADTransitionView alloc] initWithFrame:fromView.frame]; - fromView.frame = fromView.bounds; - toView.frame = toView.bounds; + UIView * wrapperView = [[ADTransitionView alloc] initWithFrame:CGRectMake(0, 0, fromView.frame.size.width, fromView.frame.size.height)]; wrapperView.autoresizesSubviews = YES; wrapperView.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth;