////////////////////
    UITabBarController *tabBarController = [[UITabBarController alloc] init];

    UIViewController *controller1 = [[YourViewController alloc] init];
    controller1.title = @"one View";
    controller1.tabBarItem.image = [UIImage imageNamed:@"tab3.png"];
    ViewControllerMain *controller2 = [[ViewControllerMain alloc] init];
    controller2.title = @"Third View";
    controller2.tabBarItem.image = [UIImage imageNamed:@"tab3.png"];

    tabBarController.viewControllers = [NSArray arrayWithObjects:
                                        controller1,
                                        controller2,
                                        nil];

    tabBarController.delegate=self;

    // set as the root window
    self.window.rootViewController = tabBarController;

Screen Shot 2014-01-20 at 3.09.30 PM

By admin-powenko

Dr. Powen Ko is a teacher and CEO on LoopTek LLC, and like to teaching. if you need to class, please let PowenKo know, he will love to service and sharing. LoopTek web site is www.looptek.com

Leave a Reply