View has been resized after transition
I have the following configuration - UIViewController placed in UINavigationController which is placed in UITabBarController.
My view is added as subview to the view of UIViewController and has constraints to fill the space between navigation bar and tab bar. Everything works if I do not use transitions (ADTransitionController does not work). When I activate ADTransitionController the animation itself works fine but when it's completed I find that my view has been resized - the new height is smaller by 49 points (the height of Tab bar).
It looks like ADTransitionController is responsible for the resizing of my view but I cannot understand the reason and find where it happens. Could you help me? Thanks in advance!
Which API are you using? The new one with ADTransitioningViewController (iOS 7 only) or the other one?
I'm using the last version of ADTransitionController, but I do not use ADTransitioningViewController. I setup ADTransitioningDelegate in UITabBarControllerDelegate protocol:
- (id<UIViewControllerAnimatedTransitioning>)tabBarController:(UITabBarController *)tabBarController
animationControllerForTransitionFromViewController:(UIViewController *)fromVC
toViewController:(UIViewController *)toVC
{
if (_animationDelegate == nil) {
ADTransition *transition = [[ADPushRotateTransition alloc] initWithDuration:0.4f
orientation:ADTransitionRightToLeft
sourceRect:tabBarController.view.frame];
_animationDelegate = [[ADTransitioningDelegate alloc] initWithTransition:transition];
}
NSUInteger fromVCIndex = [tabBarController.viewControllers indexOfObject:fromVC];
NSUInteger toVCIndex = [tabBarController.viewControllers indexOfObject:toVC];
((ADTransitioningDelegate *)_animationDelegate).transition.type = (fromVCIndex < toVCIndex) ? ADTransitionTypePush : ADTransitionTypePop;
return _animationDelegate;
}