2011-12-02 82 views

回答

4

使用UINavigationController

MySub1ViewController *mySub1ViewController = [[MySub1ViewController alloc] init]; 

//Push it to the top of the navigation controllers stack 
[[self navigationController] pushViewController:mySub1ViewController animated:YES]; 

//Pop viewController from the view stack 
[[self navigationController] popViewControllerAnimated:(BOOL)YES]; 

详细检查了这tutorial

+0

是否上了XCode 4.2工作吗?因为你给了教程链接是似乎在Xcode 4.0或以下版本编码。请点亮那个。 –

+1

是的,它在xcode4.2中工作。我自己在xcode4.3中使用它。实际上,它不是你需要担心的xcode,而是你正在使用的iOS版本,并且这在ios4&ios5中可用... –

+0

好的。我在Xcode 4.2上工作的团队成员要求我在Xcode 4.0.1中创建基于窗口的应用程序,然后将它们发送出去,因此他们继续从这里开始工作,因为在XCode 4.2中没有基于Window的项目选项。 –

相关问题