2012-05-19 30 views
1

我的目标:点击查看一个按钮会带给我可以看到这是一个包含查看2和查看UITabBarViewController 3.UITabBarViewController不会显示为预计

什么我做的是:

-(void) goToView1 { 
    View1 *controller = [[View1 alloc] initWithNibName:@"View1"bundle:nil]; 
    [self.navigationController pushViewController:controller animated:YES]; 
} 

和所有的厦门国际银行文件都在下面的图片描述 enter image description here

但是,运行该应用程序后,我得到了什么是

enter image description here

任何人都可以在这个问题上给我建议吗?

欢迎发表评论。

回答

2

您使用了UITabBarViewController,并且您正在尝试导航到视图。如果你想导航到一个视图,然后使用UINavigationController