From a541d4c0813a4e9f711df854227de2ec9fdddbdf Mon Sep 17 00:00:00 2001 From: Nikolay Derkach Date: Thu, 7 May 2015 10:32:28 +0700 Subject: [PATCH 1/2] Fix UINavigationControllerDelegate not declared --- ADTransitionController/ADNavigationControllerDelegate.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 918f7e2fa1428202e581e5098dee6ef6d91ff102 Mon Sep 17 00:00:00 2001 From: Nikolay Derkach Date: Sun, 10 May 2015 21:17:35 +0300 Subject: [PATCH 2/2] Update ADTransitioningDelegate.m --- ADTransitionController/ADTransitioningDelegate.m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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;