Custom transition for push animation with NavigationController on iOS 9

北城以北 提交于 2019-12-04 03:27:58

I've managed to fix my issue by adding the following line before addSubview::

  toViewController.view.frame = [transitionContext finalFrameForViewController:toViewController];

From Apple's Documentation for finalFrameForViewController:

Returns the ending frame rectangle for the specified view controller’s view.

The rectangle returned by this method represents the size of the corresponding view at the end of the transition. For the view being covered during the presentation, the value returned by this method might be CGRectZero but it might also be a valid frame rectangle.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!