如何检测在导航控制器中结束的弹出/推送动画



我正在尝试实现一个(如呈现/关闭函数(

popViewControler:animated:compilation
pushViewController:animated:compilation

UINavigationController子类中。

我想在我的子类中检测每次新的 UIViewController 被 poppet/push 并且动画已经结束时,然后调用回调。

有什么建议吗?

谢谢

UINavigationControllerDelegate

func navigationController(_ navigationController: UINavigationController, didShow viewController: UIViewController, animated: Bool) {
}
func navigationController(_ navigationController: UINavigationController, willShow viewController: UIViewController, animated: Bool) {
}

最新更新