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

The Archive Base Latest Questions

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

I had added tabbar dynamically in my application which is having 3tabs. Now these

  • 0

I had added tabbar dynamically in my application which is having 3tabs.
Now these 3tabs open the specific view controller:-

1st Tab open:-Information page

2nd Tab open:-Some List page

3rd Tab open:-Setting page

Now on selecting the 3rd tab setting page appears
In Setting page i have a button which navigate the application to some detailsettingpage.
Now in detail setting page on clicking changebutton It will change the viewcontrollers of tab.:-

1st Tab open:-Information page

2nd Tab open:-Map Page(Instead of some list page)

3rd Tab open:-Setting page**

This is where the problem is.I am not having any clue to change the viewcontroller of 2nd tab which is already set once.

i had added the tabbar dynamically in viewwillappear() function of
someviewcontoller.m filelike:-

tabBarController = [[UITabBarController alloc] init];
    [tabBarController setViewControllers:[NSArray arrayWithObjects:nav1,nav2,nav3,nil]];

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

    [nav1 release]; nav1 = nil;
    [nav2 release]; nav2 = nil;
    [nav3 release]; nav3 = nil;
    [tabBarController release]; 
    tabBarController = nil;
  • 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-11T23:55:33+00:00Added an answer on June 11, 2026 at 11:55 pm

    Try this! nav1,nav2,nav3 are navigationController’s object. You must be using ViewController to pass in each navigationcontroller. So you need to change the viewController in nav2. Change object of nav2’s viewcontroller from Some List page’s View Controller to Map Page View Controller’s object.

    changing the object of view Controller will change the Tab button dynamically. hope it may help you.

    Thanks 🙂

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

Sidebar

Related Questions

I had an application written without ARC, now I added ARC and I do
I am using alarm in my application in which I had added snooze functionality.
Hi I had added marquee tag in my application which works well in android
How I can delete an object which I had added before with this code.
I recently added some url re-writing to my web application and had to added
Here i had added code below in which i had ArrayList Which contains values
I am using an EditText field in my application. also i had added addTextChangedListener
In my application I had added Listpicker and Datepicker with proper DLL and Namespaces
I had added 5 view controllers as subviews to window in appDelegate. But when
I added a project, Project2, to my solution. It already had another project lets

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.