2011-09-22 60 views
-1

我有一个TabView控件,当用户点击标签项目,视图将加载。当加载视图标签栏不显示 - noob问题

当视图被加载,对视图中的按钮,并且当我在按钮上点击,另一视图被加载,我用下面的代码来加载视图:

NextView *next = [[NextView alloc]initWithNibName:nil bundle:nil]; 
[self presentModalViewController:next animated:NO]; 

但是,当视图加载时,标签栏项目不显示。它加载在标签栏项目的顶部。我怎样才能使视图弹出与标签栏项目?

回答

0

NextView * next = [[NextView alloc] initWithNibName:@“yourNibName”bundle:nil]; [self presentModalViewController:next animated:YES];

如果你正在使用presentModalViewController则无法显示的TabBar,而不是你可以使用pushViewController

+0

我如何做到这一点?任何示例代码/应用程序或教程? – thar

+0

NextView * next = [[NextView alloc] initWithNibName:@“yourNibName”bundle:nil]; [self.navigationController pushViewcontroller:next animated:YES]; – Ram

+0

它说它不响应pushviewcontroller。为什么是这样 ?任何线索? – thar