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

  • Home
  • SEARCH
  • 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 8967715
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:18:27+00:00 2026-06-15T17:18:27+00:00

If i go straight to the point then my problem is i have an

  • 0

If i go straight to the point then my problem is i have an UIViewController with two button.

  1. Button One –(onclick must navigate to)—>UITabbarController with 4 UITabbar item or i can take a UITabbar in my new UIViewController;

  2. Button Two –(OnClick must navigate to)—>UITabbarController where first tabbaritem will contain containing UITableView or or i can take a UITabbar in my new UIViewController where first TabbarItem will contain a UITableView.

How can i make this??? sample code will more helpful neither suggestion. if you need any clarification please do not hesitate to ask.

With Best Regards
Emon

  • 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-15T17:18:28+00:00Added an answer on June 15, 2026 at 5:18 pm

    First, you need to have a NavigationController if you want another view controller to be pushed on when you click a button. The steps you would need to do are the following

    1. Start with a MasterDetail app on iPhone
    2. In the xib file, put your buttons and wire them up to the correct methods
    3. In the view did appear of the view controller have the following code

      self.tbc1 = [[UITabBarController alloc] init];
      self.tbc2 = [[UITabBarController alloc] init];
      
      
      UIViewController *tbc1vc1 = [[UIViewController alloc] init];
      UIViewController *tbc1vc2 = [[UIViewController alloc] init];
      UIViewController *tbc1vc3 = [[UIViewController alloc] init];
      
      UITableViewController *tbc2vc1 = [[UITableViewController alloc] init];
      UIViewController *tbc2vc2 = [[UIViewController alloc] init];
      UIViewController *tbc2vc3 = [[UIViewController alloc] init];
      
      [self.tbc1 setViewControllers:[NSArray arrayWithObjects:tbc1vc1,tbc1vc2,tbc1vc3, nil]];
      [self.tbc1 setViewControllers:[NSArray arrayWithObjects:tbc2vc1,tbc2vc2,tbc2vc3, nil]];
      
    4. Ofcourse you have to have properties defined for tbc1 adn tbc2 in your view controller.

    5. In the app delegate do the following

          self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
      
      ViewController *myViewController = [[ViewController alloc] init];
      self.viewController = [[UINavigationController alloc] initWithRootViewController:myViewController];
      self.window.rootViewController = self.viewController;
      [self.window makeKeyAndVisible];
      return YES;
      
    6. Change the UIViewController in the .h file to UINavigationController like

      @property (strong, nonatomic) UINavigationController *viewController;
      
    7. Have the two buttons and wire it to the following methods

      -(IBAction)tbc1Clicked{
      [self.navigationController pushViewController:self.tbc1 animated:YES];
      }
      
      -(IBAction)tbc2Clicked{
          [self.navigationController pushViewController:self.tbc2 animated:YES];
      }
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very short and straight to the point question. When adding an
My web app, up until this point, has been fairly straight forward. I have
Straight to the point... I have an array ( $is_anonymous_ary ) that looks like
Straight to the point -- I have a Symfony 1.3 / Propel 1.4 project.
I have this array: ArrayList<Problem> problems = new ArrayList <Problem>( 100 ); then I
Straight to the point. The CSS ribbon is supposed to attach itself to the
I want to go straight to my point here, so is it possible to
I'll get straight to the point. I'm building a website on an existing database,
Ok, let's get straight to the point. I got 2 questions 1. Why self.StyleSetSpec(stc.STC_STYLE_DEFAULT,
i know this should be simpel and im probably staring straight at the problem

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.