Skip to content

Commit 4adabe0

Browse files
committed
Use container bounds instead of screen
1 parent 3c10252 commit 4adabe0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Examples/TransitionFun/TransitionFun/MEZoomAnimationController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ - (void)animateTransition:(id <UIViewControllerContextTransitioning>)transitionC
7474
UIView *containerView = [transitionContext containerView];
7575

7676
UIView *topView = topViewController.view;
77-
topView.bounds = [UIScreen mainScreen].bounds;
77+
topView.frame = containerView.bounds;
7878

7979
underLeftViewController.view.layer.transform = CATransform3DIdentity;
8080

0 commit comments

Comments
 (0)