我已搜索和搜索,但仍然无法找出这个问题! :-(UINavigation Controller和UITabbarController connumdrum
我在main.xib一个TabBarController是设置有五个viewControllers。
我想获得第一的ViewController是一个导航控制器,这样如果第一个选项卡中选择我可以推及弹出意见眼帘
但对我的生活,我不能得到这个工作
我在我的应用程序委托didLaunch方法试过这样:?
UITabBarController *tabBarController = [[UITabBarController alloc] init];
tabBarController.delegate=self;
FirstViewController *first = [[FirstViewController alloc] initWithNibName:@"FirstView" bundle:[NSBundle mainBundle]];
UINavigationController *firstNav = [[UINavigationController alloc] initWithRootViewController:first];
NSArray* controllers = [NSArray arrayWithObjects:firstNav, nil];
tabBarController.viewControllers = controllers;
[window addSubview:tabBarController.view];
为什么我看到我的视图显示,但没有按钮出现在标签栏?
任何提示?日Thnx
茶青!感谢芽;-)感谢所有谁回应,感谢它;-) – user7865437 2011-06-06 12:47:01