0

我正在尝试将导航栏添加到我的标签栏视图控制器中。但是,它显示在 firstViewController 中,但没有显示在其他两个视图中。为什么这不起作用?

self.firstVC = [[FirstViewController alloc] initWithNibName:@"FirstViewController" bundle:nil fileName:@"firstPlist"];
self.firstVC.tabBarItem.image = [UIImage imageNamed:@"first"];
self.firstNavBarController = [[UINavigationController alloc] initWithRootViewController:self.firstVC];

self.secondVC = [[FirstViewController alloc] initWithNibName:@"SecondViewController" bundle:nil fileName:@"secondPlist"];
self.secondVC.tabBarItem.image = [UIImage imageNamed:@"second"];
self.secondNavBarController = [[UINavigationController alloc] initWithRootViewController:self.secondVC];


self.thirdVC = [[ThirdViewController alloc] initWithNibName:@"thirdView" bundle:nil fileName:@"thirdPlist"];
self.thirdVC.tabBarItem.image = [UIImage imageNamed:@"third"];
self.thirdNavBarController = [[UINavigationController alloc] initWithRootViewController:self.thirdVC];
4

0 回答 0