这都是在AppDelegate中完成的:
//Initialize the controllers
navController = [[UINavigationController alloc]init];
iVacationTabBar = [[UITabBarController alloc] init];
//Define the viewcontrollers
myTools* vc_tools = [[myTools alloc] init];
mySettings* vc_settings = [[mySettings alloc] init];
aboutIVacation* vc_about = [[aboutIVacation alloc] init];
myCurrent *mycurrentpage = [[myCurrent alloc] init];
//Create the array of controllers
NSArray* controllers = [NSArray arrayWithObjects:mycurrentpage, vc_tools,vc_settings, vc_about, nil];
//Add the view controllers to the tab bars:
[iVacationTabBar setViewControllers: controllers animated:YES];
//Push the first view controller to the stack:
[navController pushViewController: mycurrentpage animated:NO];
//Add the tabBar and navController to the window:
[window addSubview:iVacationTabBar.view];
[window addSubview:navController.view];
我做错什么了。我无法让页面上的任何元素工作。我的当前页面上有一个按钮也不起作用。