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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T18:26:58+00:00 2026-05-21T18:26:58+00:00

I have a UITabBarController and I have set up its delegate method didSelectViewController ,

  • 0

I have a UITabBarController and I have set up its delegate method didSelectViewController, as I am interested in the index of the tab that is being selected.

However, I noticed that the didSelectViewController method doesn’t get called when the user is in the “More” section (when there are more tabs than can be shown in the tabbar):

The problematic section

Is there a way for me to get notified of the items the user selects from the table that is being automatically created?

  • 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-21T18:26:59+00:00Added an answer on May 21, 2026 at 6:26 pm

    I found what I needed in this question.

    Basically you set up a UITabBarControllerDelegate and a UINavigationControllerDelegate for the navigation controller that is displayed inside the More tab. After that you detect if the user touched one of the visible tabs, or the “More” tab.

    EDIT

    Also, to directly manipulate the table that is visible within the “More” navigation controller, you can set up a “man-in-the-middle” table view delegate, that intercepts the calls to the original delegate. See code from inside didSelectViewController below:

    if (viewController == tabBarController.moreNavigationController && tabBarController.moreNavigationController.delegate == nil) {
        // here we replace the "More" tab table delegate with our own implementation
        // this allows us to replace viewControllers seamlessly
    
        UITableView *view = (UITableView *)self.tabBarController.moreNavigationController.topViewController.view;
        self.originalDelegate = view.delegate;
        view.delegate = self;
    }
    

    After that, you are free to do whatever you like inside the delegate methods, as long as you call the same methods in the other delegate (I actually checked to which methods the original delegate responds, and the only delegate method that is implemented is the didSelectRow:forIndexPath:). See an example below:

    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
        // this is the delegate for the "More" tab table
        // it intercepts any touches and replaces the selected view controller if needed
        // then, it calls the original delegate to preserve the behavior of the "More" tab
    
        // do whatever here 
        // and call the original delegate afterwards
        [self.originalDelegate tableView: tableView didSelectRowAtIndexPath: indexPath];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it true that UITabBarController never calls initWithNibName on its child views (individual tabs)?
I have build a UITabBarController programmatically and populated its viewControllers property. When I run
I have a UITabbarController set by the Interfacebuilder. The tabbarcontroller has 5 tabs, the
I have a UITabBarController. One of the tab shows application bookmarks, these bookmarks are
I'm developing an iPhone app, where I have a UITabBarController that has a UINavigationController
I have a subclass of UITabBarController which i am using so that i can
Ok, so here's the thing. I have a UIViewController that contains a UITabBarController. That
I have a project that adds elements to an AutoCad drawing. I noticed that
Have just started using Google Chrome , and noticed in parts of our site,
Greetings! I have a working iPhone app (huzzah!) that uses a MainView.xib containing a

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.