与其将视图控制器直接推送到标签栏上,不如先创建一个导航控制器并使用其特定控制器的 rootviewcontroller 对其进行初始化
Settings *settingsVC = [[Settings alloc] init];
UINavigationController *settingsNavigationController = [[UINavigationController alloc] initWithRootViewController:settingsVC];
Report *reportVC = [[Report alloc] init];
UINavigationController *reportNavigationController = [[UINavigationController alloc] initWithRootViewController:reportVC];
Episodes *episodesVC = [[Episodes alloc] init ];
UINavigationController *episodesNavigationController = [[UINavigationController alloc] initWithRootViewController:episodesVC];
UINavigationController *homeNavigationController = [[UINavigationController alloc] initWithRootViewController:homeVC];
NSArray* controllers = [[NSArray alloc] initWithObjects:settingsNavigationController,
reportNavigationController,
episodesNavigationController,
homeNavigationController, nil];