Rightpoint / RZTransitions

A library of custom iOS View Controller Animations and Interactions.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When toController is model , the auto layout breaks after animation finishes.

ijameelkhan opened this issue · comments

When toController is model , the auto layout breaks after animation finishes. To reproduce , set default animations as follows.

'id presentDismissAnimationController = [[RZZoomAlphaAnimationController alloc] init];
id pushPopAnimationController = [[RZZoomAlphaAnimationController alloc] init];
[[RZTransitionsManager shared] setDefaultPresentDismissAnimationController:presentDismissAnimationController];
[[RZTransitionsManager shared] setDefaultPushPopAnimationController:pushPopAnimationController];'

Now present the controller as follows

' [vc setTransitioningDelegate:[RZTransitionsManager shared]];
[self presentViewController:vc animated:YES completion:NULL];'

The vc layout doesnt get adjusted based on screen size.