0
在我的應用程序中,我有以下UIViewControllers;
如何找出當前uiviewcontroller
HomeViewController
FirstViewController
SecondViewController, and etc...
我的問題是; 如何找出SecondViewController是否是當前的UIViewController?
在我的應用程序中,我有以下UIViewControllers;
如何找出當前uiviewcontroller
HomeViewController
FirstViewController
SecondViewController, and etc...
我的問題是; 如何找出SecondViewController是否是當前的UIViewController?
我已經找出解決方案。這是代碼;
if([[self.navigationController visibleViewController] isKindOfClass:[SecondViewController class]])
{
}
else{
}
在什麼情況下或範圍你需要這個? – 2010-10-23 13:07:48
在我的應用程序中,我使用了推送通知。在收到推送通知後,我必須從HomeViewController進入SecondViewController。 – jfalexvijay 2010-10-23 13:34:31