本文介绍了segue完成后如何执行一些代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在iOS 6中是否可以知道 UIStoryboardSegue
何时完成转换?就像我从 UIButton
添加 UIStoryboardSegue
来推送另一个 UIViewController
在navigationcontroler上,我希望在推送转换完成后立即处理。
Is it possible in iOS 6 to know when a UIStoryboardSegue
has finished its transition? Like when i add a UIStoryboardSegue
from UIButton
to push another UIViewController
on the navigationcontroler, i want to to something right after the push-transition is finished.
推荐答案
你可以使用 UINavigationControllerDelegate
协议然后定义:
You can use the UINavigationControllerDelegate
protocol and then define:
– navigationController:didShowViewController:animated:
这篇关于segue完成后如何执行一些代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!