我认为,你应当使用塔巴控制器。 • 努力执行这样的守则:
myTabBarController = [[UITabBarController alloc] init];
NewsFeedController *newsFeedController = [[NewsFeedController alloc] initWithFacebook:facebook];
UINavigationController *navigationControllerHome = [[UINavigationController alloc] initWithRootViewController:newsFeedController];
[newsFeedController release];
AboutController *aboutController = [[AboutController alloc] init];
UINavigationController *navigationControllerAbout = [[UINavigationController alloc] initWithRootViewController:aboutController];
[aboutController release];
myTabBarController.viewControllers = [NSArray arrayWithObjects:navigationControllerHome, navigationControllerAbout, nil];
[self.window addSubview:myTabBarController.view];
NewsFeedController和OnController将出现在表格中。