2011-01-27 23 views
0

通过下面的代码我从firstView移动到RootViewController。如何使用pushcontroller访问RootViewController?

RootViewController *controller = [[RootViewController alloc] 
           initWithNibName:@"RootView" bundle:nil]; 
[self.navigationController popToRootViewControllerAnimated:YES];  
[controller release]; 

现在,怎么可以用推我移动到RootViewController的从上查看,但不能与流行????? 我们必须改变流行音乐推送? 任何人都可以帮助建议此代码?

回答

0

popToRootViewControllerAnimated会弹出到堆栈的开始处。

myRoot -> firstView -> secondView -> thirdView 

如果你是thirdView使用popToRootViewControllerAnimated,它会弹出来myRoot

+0

我们不能使用PushToRootViewController吗? – RKK 2011-01-27 00:26:47

相关问题