所有我首先显示此图片,以便我可以参考它。弹出并在标签栏应用程序中推送视图
基本上我想实现的是,你可以看到第一个已经选择了选项卡,并正在显示视图。我有一个按钮,其上有一个“ - , - ”,我想要做的是点击该按钮时,它从该选项卡弹出视图,并推送另一个视图。我能够通过这样来改变视图:
FourthViewController *home = [[FourthViewController alloc] initWithNibName:@"FourthView" bundle:nil];
[self presentModalViewController:home animated:YES];
[home release];
但我失去的标签向下探底:<如下面的例子将显示:
我不知道哪方向头,但我已经试过这和它的失败:
UINavigationController *navController = self.navigationController;
// retain ourselves so that the controller will still exist once it's popped off
[[self retain] autorelease];
// Pop this controller and replace with another
[navController popViewControllerAnimated:NO];
[navController pushViewController:home animated:NO];
我也试过这样:
FourthViewController *home = [[FourthViewController alloc] initWithNibName:@"FourthView" bundle:nil];
[self.navigationController pushViewController:home animated: YES];
[home release];
有人可以帮我吗?
有没有关于这个的任何教程?或者你能给我提供什么? –
也许这个类似的例子将帮助http://stackoverflow.com/questions/5117721/multiple-view-states-in-interface-builder – meggar
没有真正帮助很多。我遇到同样的问题 –