0

ナビゲーション バーをタブバー ビュー コントローラーに追加しようとしていますが、firstViewController には表示されますが、他の 2 つのビューには表示されません。これが機能しない理由は何ですか?

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