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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T09:26:27+00:00 2026-05-12T09:26:27+00:00

My question is about how to access the TabBarController from within one of its

  • 0

My question is about how to access the TabBarController from within one of its viewControllers.

Imagine a mainClass.m that adds tabBarController which has two viewControllers – viewController1 and viewController2.

In viewController1.m there is a game. When the game is over, viewController1.m wants to tell tabBarController to display viewController2, but viewController1 has no reference to tabBarController. How do I reference the viewController’s parent?

How does one change tabBarItems from within the code for the current view?

  • 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-12T09:26:27+00:00Added an answer on May 12, 2026 at 9:26 am

    Via the tabBarController property of your view controller.

    [ self.tabBarController setViewControllers: viewController2 animated: YES ];
    

    Where “self” is viewController1

    tabController property of viewControllers

    setViewControllers:animated: method of UITabBarController

    Also, technically, the tabBarController is not any view controller’s parent. To say it that way is confusing how inheritance works in Objective-C. Your view controller’s super class, or parent, is UIViewController.

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

Sidebar

Related Questions

I have a question about access to object properties that will be used in
Clarification: this question is not about access modifier Confirmed that B.m() and b.m() statements
Yet another simple question about unit testing model objects that uses data access layer.
I have a question about Access.If for example I have a table with the
I have a question about how to access the member with the same name
My question about the reconfiguration delay when switching between Access 2003 and 2007 the
I've recently made another question about connecting to MS-ACCESS database with .NET in C#
my question is about two possible ways to access data: (My question is about
Quick question about the TransactionScope object. Found this on the internet: When you access
A question about the internal storage that's private to each application (especially when storing

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.