Friday, 18 May 2012

how to make custom tabBar in appDel

// Override point for customization after application launch.
    UIViewController *viewController1 = [[[FirstViewController alloc] initWithNibName:@"FirstViewController" bundle:nil] autorelease];
    UIViewController *viewController2 = [[[SecondViewController alloc] initWithNibName:@"SecondViewController" bundle:nil] autorelease];
    UIViewController *viewController3 = [[[join alloc] initWithNibName:@"join" bundle:nil] autorelease];
    UIViewController *viewController4 = [[[shop alloc] initWithNibName:@"shop" bundle:nil] autorelease];
    UIViewController *viewController5 = [[[News alloc] initWithNibName:@"News" bundle:nil] autorelease];
   
    self.tabBarController = [[[UITabBarController alloc] init] autorelease];
    self.tabBarController.viewControllers = [NSArray arrayWithObjects:viewController1, viewController2,viewController3,viewController4,viewController5, nil];
    self.window.rootViewController = self.tabBarController;
    [self.window makeKeyAndVisible];
    return YES;

No comments:

Post a Comment