【发布时间】:2010-12-30 17:50:46
【问题描述】:
我有一个带有 TabBarController 的 iPhone 应用程序。我可以使用
访问当前的 ViewController[appDelegate.myTabBarController selectedViewController]
但是我怎样才能得到这个控制器的名字呢?
例如,所选 ViewController 的名称是“TestViewController”。我怎样才能得到这个字符串/名称? 我想检查当前的 ViewController 是否为“TestViewController”。
非常感谢提前和最好的问候。
【问题讨论】:
标签: iphone uiviewcontroller uitabbarcontroller