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 6020815
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:37:22+00:00 2026-05-23T03:37:22+00:00

i have a tabBarController with 3 items. In my first view in my first

  • 0

i have a tabBarController with 3 items.

In my first view in my first item of my tabBar i have a tableview and a navigationController.

how to go in the second item of my tabBar when i push 1 row in my tableview in the fist item of my tabBar?

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {


Second *two = [[Second alloc] initWithNibName:@"Second" bundle:nil];


[self.navigationController pushViewController:two animated:YES];

[two release];

thks

  • 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-05-23T03:37:23+00:00Added an answer on May 23, 2026 at 3:37 am

    Use the selectedIndex property on the UITabBarController. More information can be found in the UITabBarController Class Reference.

    self.tabBarController.selectedIndex = 1;
    

    or use

    [self.tabBarController setSelectedIndex:1];
    

    Note that the indices start at 0, so the second tab is at index 1.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a tabBarController xib. I've set the first item's class to a view
I have a view inside a tabbarcontroller and navigationcontroller and my 'willAnimateRotationToInterfaceOrientation' method is
I have a tabBarController with 4 views. I wanted the second view to rotate,
I have a TabBar App. I have created a UITableView class called Schedule that
I am displaying a webpage on one of tabbar items from main iOS tabbarcontroller
I have a tabbarcontroller and it has 3 tabbaritems . in the first screen,
In my app I have a tabBarController and in it a navigationController. One of
Any idea why this works: [[[[[self tabBarController] tabBar] items] objectAtIndex:2] setBadgeValue:@Hello]; But this doesn't?
i have a uitabbarcontroller which has 3 items. each item has its own navigation
I want to use tabBarController but its root view will not be the first

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.