AppDelegate 的当前视图控制器? [英] Current view controller from AppDelegate?
本文介绍了AppDelegate 的当前视图控制器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法从 AppDelegate 获取当前视图控制器?我知道有 rootViewController,但这不是我要找的.p>
Is there a way to get the current view controller from the AppDelegate? I know there is rootViewController, but that's not what I'm looking for.
推荐答案
如果你有 UINavigationController 到 appDelegate 然后使用它的属性 topViewController 或 visibleViewController
If you have UINavigationController into appDelegate then use its property topViewController or visibleViewController
这篇关于AppDelegate 的当前视图控制器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文