Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9228827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:25:19+00:00 2026-06-18T05:25:19+00:00

After searching on how to implement a custom tab bar for my iphone app,

  • 0

After searching on how to implement a custom tab bar for my iphone app, I came across the TweetBot Tab Bar located here TweetBotTabBar

I downloaded the zip file and opened the Tweet Bot project in Xcode, however i’m not sure how to go about using it in my own app.

Do I have to import the TweetBot project into my own project or do I have to copy and paste the code separately?

My existing code uses the standard UITabBarController included in the SDK.

Thanks in advance for any help or suggestions.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T05:25:20+00:00Added an answer on June 18, 2026 at 5:25 am

    From the source file copy these files into your project

    Tabbar Files

    Then create your rootViewController and add a TBTabBar to the view, assign different viewcontroller to your different tabbars and implement TBTabbarDelegate inside.

    #import <UIKit/UIKit.h>
    #import "TBTabBar.h"
    @interface ViewController : UIViewController<TBTabBarDelegate>{
        TBTabBar *tabBar;
    }
    
    @end
    

    Implementation of this view controller will be as follow

    #import "ViewController.h"
    #import "TweetBotTabBarTestViewController.h"
    @interface ViewController ()
    
    @end
    
    @implementation ViewController
    - (void)dealloc
    {
        [tabBar release];
        [super dealloc];
    }
    
    - (void)didReceiveMemoryWarning
    {
        // Releases the view if it doesn't have a superview.
        [super didReceiveMemoryWarning];
    
        // Release any cached data, images, etc that aren't in use.
    }
    
    #pragma mark - View lifecycle
    
    - (void)viewDidLoad
    {
        [super viewDidLoad];
    
        TweetBotTabBarTestViewController *vc1 = [[TweetBotTabBarTestViewController alloc] init];
        TweetBotTabBarTestViewController *vc2 = [[TweetBotTabBarTestViewController alloc] init];
        TBViewController *vc3 = [[TBViewController alloc] init];
        vc3.view.backgroundColor = [UIColor darkGrayColor];
    
        TBTabButton *t1 = [[[TBTabButton alloc] initWithIcon:[UIImage imageNamed:@"timelineIcon"]] autorelease];
        t1.highlightedIcon = [UIImage imageNamed:@"timelineIconHighlighted"];
        t1.viewController = vc1;
        TBTabButton *t2 = [[[TBTabButton alloc] initWithIcon:[UIImage imageNamed:@"mentionsIcon"]] autorelease];
        t2.highlightedIcon = [UIImage imageNamed:@"mentionsIconHighlighted"];
        t2.viewController = vc2;
        TBTabButton *t3 = [[[TBTabButton alloc] initWithIcon:[UIImage imageNamed:@"messagesIcon"]] autorelease];
        t3.highlightedIcon = [UIImage imageNamed:@"messagesIconHighlighted"];
        t3.viewController = vc3;
        TBTabButton *t4 = [[[TBTabButton alloc] initWithIcon:[UIImage imageNamed:@"favoritesIcon"]] autorelease];
        t4.highlightedIcon = [UIImage imageNamed:@"favoritesIconHighlighted"];
        t4.viewController = vc3;
        TBTabButton *t5 = [[[TBTabButton alloc] initWithIcon:[UIImage imageNamed:@"searchIcon"]] autorelease];
        t5.highlightedIcon = [UIImage imageNamed:@"searchIconHighlighted"];
        t5.viewController = vc3;
        NSArray *a = [NSArray arrayWithObjects:t1, t2, t3, t4, t5, nil];
        tabBar = [[TBTabBar alloc] initWithItems:a];
        tabBar.delegate = self;
        [self.view addSubview:tabBar];
        [tabBar showDefaults];
    }
    
    #pragma mark - TBTabbar Delegate
    -(void)switchViewController:(UIViewController *)viewController {
        UIView *currentView = [self.view viewWithTag:SELECTED_VIEW_CONTROLLER_TAG];
        [currentView removeFromSuperview];
    
        viewController.view.frame = CGRectMake(0,0,self.view.bounds.size.width, self.view.bounds.size.height-(tabBar.frame.size.height));
    
        viewController.view.tag = SELECTED_VIEW_CONTROLLER_TAG;
    
        [self.view insertSubview:viewController.view belowSubview:tabBar];
    }
    
    
    @end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to implement a calendar for my app, after searching on different libraries
Good day! I use pg_search to implement Full text searching in my web app.
After searching online and reading the Oracle documentation for this, I need some help
After searching I dd not find anything about glassfish3.1 and CORS Is it possible
After searching in the Net for about 4 hours I still don't understand Async
After searching online and going through past stackoverflow posts for a suitable implementation for
After searching through some existing libraries for JSON, I have finally ended up with
After searching a lot i did not get any answers and finally i had
After searching a long time for a performance bug, I read about denormal floating
After searching the other questions none have answered the specific issue I have. We

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.