我已搜索和搜索,但仍然無法找出這個問題! :-(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