You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My UIViewController had its viewWillAppear: method getting called twice – once by RZZoomPushAnimationController and then again by the system, causing some unnecessary work to be done. RZZoomPushAnimationController's animateTransition: method explicitly calls [toViewController viewWillAppear:YES]. This seems wrong to me because the system already automatically calls UIViewController's viewWillAppear: when appropriate.
I haven't read any documentation to indicate that viewWillAppear: should ever be explicitly called. Is its use here an undocumented bug workaround or does it need to be called for any reason? I removed it (because that seems like the better alternative than adding a guard to viewWillAppear:) and everything works as expected now (work is not done twice).
The text was updated successfully, but these errors were encountered:
My UIViewController had its viewWillAppear: method getting called twice – once by RZZoomPushAnimationController and then again by the system, causing some unnecessary work to be done. RZZoomPushAnimationController's animateTransition: method explicitly calls
[toViewController viewWillAppear:YES]
. This seems wrong to me because the system already automatically calls UIViewController's viewWillAppear: when appropriate.I haven't read any documentation to indicate that viewWillAppear: should ever be explicitly called. Is its use here an undocumented bug workaround or does it need to be called for any reason? I removed it (because that seems like the better alternative than adding a guard to viewWillAppear:) and everything works as expected now (work is not done twice).
The text was updated successfully, but these errors were encountered: