我正在尝试实现一个(如呈现/关闭函数(
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) {
}