UITabBarController with icon and title

January 20, 2014   ·   0 Comments

    ////////////////////
    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

shareShare on FacebookShare on Google+Share on LinkedInEmail this to someonePrint this pageBuffer this pageDigg thisFlattr the authorShare on RedditPin on PinterestShare on StumbleUponShare on TumblrTweet about this on Twitter

By


Readers Comments (0)


You must be logged in to post a comment.

PowenKo’s Online Store

powenko_arduinoBook
iOS Tutorial9

Amazon

adsbygoogle

Recent Posts

Categories

Amazon