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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T12:17:32+00:00 2026-06-11T12:17:32+00:00

I have an iPhone app terminating with the following error for the action.tag statement

  • 0

I have an iPhone app terminating with the following error for the action.tag statement below. I’m in a delegate for a tab bar controller, trying to determine if the active class should continue on to a tab selected by the user or stay in the current class. If the decision is to go to another class I’m trying to get the appropriate tab bar index to pass back to the main tab bar controller.

‘-[UITabBarController viewControllersindexOfObject:]: unrecognized selector

action.tag = [self.tabBarController viewControllersindexOfObject:viewController];

Much thanks to NJones for the earlier assistance with this code as part of an action sheet implementation he shared with me. The original example had a period between tabBarController and viewControllersindexOfObject but that was giving me a syntax error. I do get a warning on the current syntax that UITableController may not respond to viewControllersindexOfObject.

  • 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-11T12:17:34+00:00Added an answer on June 11, 2026 at 12:17 pm

    Well, I’ve never seen that method before and I don’t believe it exists.
    But you can get the index of a view controller in a tab bar easily like that:

        [[self.tabBarController viewControllers] indexOfObject:viewController];
    

    Hope that helps you out.

    Joerg.

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

Sidebar

Related Questions

I have an iPhone app using a UINavigationController. On the fourth controller of the
I have an iPhone app that is based on a navigation controller. I have
My iPhone app is a Tab Bar Application, which has 5 tabs. In each
An iphone app I'm working on is terminating periodically ... and I have a
I get this error when running my iPhone app 2009-12-05 21:32:06.711 iTour[7595:207] *** Terminating
I have a strange error in my app, which says: * Terminating app due
I have an iPhone app which uses iAd...The app crashes sometime with the following
I have an iPhone app that I've built for the app store. Before I
I have an iPhone app that I am writing and it has 2 targets
I have an iPhone app that allows users to record videos and I'd like

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.