在我的应用程序中,我添加了 UITabBarController *rootController;
在didFinishLaunchingWithOptions我完成了这段代码。为此我写了
WaylistController *waylistNavigationControllerTemp = [[WaylistNavigationController alloc] initWithNibName:@"WaylistNavigationController" bundle:nil];
self.waylisyViewController = waylistNavigationControllerTemp;
UINavigationController * waylistNavigationController = [[UINavigationController alloc] initWithRootViewController:waylisyViewController];
[waylistNavigationControllerTemp release];
WayRoomController *wayRoomNavigationControllerrTemp = [[WayRoomNavigationController alloc] initWithNibName:@"WayRoomNavigationController" bundle:nil];
self.WayRoomViewController = wayRoomNavigationControllerrTemp;
UINavigationController * wayRoomNavigationController = [[UINavigationController alloc] initWithRootViewController:WayRoomViewController];
[wayRoomNavigationControllerrTemp release];
rootController.viewControllers = [NSArray arrayWithObjects: WaylistNavigationController,//0
WayRoomNavigationController,//1
nil]
[rootController setSelectedIndex:0];
为此,我没有得到汽车东方总是只得到爱国者。有人请帮帮我吗?