UITabBarController
UITabBarController is the typical tab bar you see at the bottom of an iPhone application:
In your App Delegate file, inside the application:didFinishLaunchingWithOptions method:
UITabBarController *tabBarController = [[UITabBarController alloc] init]; NSArray *viewControllers = [NSArray arrayWithObjects: viewController1, viewController2, viewController3, nil]; [tabBarController setViewControllers:viewControllers]; [[self window] setRootViewController:tabBarController];
To set titles, in each controller representing a tab bar item:
- (id)initWithNibName:(NSString *)nibName bundle:(NSBundle *)bundle { self = [super initWithNibName:nil bundle:nil]; if (self) { UITabBarItem *item = [self tabBarItem]; [item setTitle:@"First"]; UIImage *image = [UIImage imageNamed:@"circle.png"]; [item setImage:image]; } return self; }












