このタブバーをビューコントローラー1に追加しましたが、完全に機能します。唯一の問題は、次の機能を実行することです[self.navigationController popViewControllerAnimated:YES];
が、タブバーボタンがタッチされたときにビューコントローラー2で実行します。最善の策は何でしょうか?
UINavigationController *homeNavigationController = [[UINavigationController alloc] initWithRootViewController:homeViewController];
homeNavigationController.tabBarItem = [[DSTabBarItem alloc] initWithFinishedSelectedImage:[UIImage imageNamed:@"home"]
finishedUnselectedImage:[UIImage imageNamed:@"home1"]
iconSize:CGSizeMake(76, 59)
tag:0];
[tabBarViewControllers addObject:homeNavigationController];