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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T13:25:55+00:00 2026-05-12T13:25:55+00:00

My app requires one set of tabs on the initial view, the last tab

  • 0

My app requires one set of tabs on the initial view, the last tab item is reserved for an in-app purchase once the user selects. However, once the user makes the in-app purchase I would like a new set of tabs to appear. I would like for the user to be able to switch back and forward between the free part of the app and the in-app purchase part of the app with different tab bars. For example:

“TabBar1” to have “TabItem 1”, “TabItem 2”, “TabItem 3”, and “TabItem 4” for my Free App, when user selects “TabItem 4” …a welcome or in-app purchase screen will appear. If user makes the in-app purchase, “TabBar2” appears with “TabItem 1”, “TabItem 5”, “TabItem 6”, and “TabItem4”. “TabItem1” will bring you back to Free part of app and “TabBar1” when selected again. Hope I didnt confuse…How do you accomplish this? Thanks for the help.

I forgot to add that this Tabbar is to be combined with a Navigation controller as well.

  • 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-12T13:25:56+00:00Added an answer on May 12, 2026 at 1:25 pm

    you can change the views of root tabbarcontroller anytime you want, also you can change tabbaritems title & icons. Here’s an example:

    MyAppDelegate *appController = (MyAppDelegate *)[[UIApplication sharedApplication] delegate];
        // Setting 1st tab + view + icon
        ViewController1 *viewController1 = [[ViewController1 alloc] initWithNibName:@"ViewController1" bundle:nil];
    favoritesController.title = @"Tab1 Title";
    UINavigationController *navigationTab1Controller = [[[UINavigationController alloc] initWithRootViewController: viewController1] autorelease];
    UITabBarItem    *anItem = [[[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemFavorites tag:0] autorelease];
    navigationTab1Controller.tabBarItem = anItem;
    
        // Setting 2st tab + view + icon
    ViewController2 *viewController2 = [[ViewController2 alloc] initWithNibName:@"ViewController2" bundle:nil];
    searchController.title = @"Tab2 Title";
    UINavigationController *navigationTab2Controller = [[[UINavigationController alloc] initWithRootViewController:searchController] autorelease];
    UITabBarItem    *anItem1 = [[[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemSearch tag:1] autorelease];
    navigationTab2Controller.tabBarItem = anItem1;
    
        // Now setting the array of tab views, each one attached to its navigation controller
    NSArray *array = [[NSArray alloc] initWithObjects:self.navigationController, navigationTab1Controller, navigationTab2Controller, nil];
    [appController.tabBarController setViewControllers:array animated:NO];
    appController.tabBarController.selectedViewController = self.navigationController;
    UITabBarItem    *anItem2 = [[[UITabBarItem alloc] initWithTitle:@"Tab3 Title" image:[appController  thumbnailImage:@"image"] tag:2] autorelease];
    self.navigationController.tabBarItem = anItem2;
    

    I’m changing the set of views and tabs, depending of the state of my application. Hopefully it helps

    EDIT: function thumbnailImage is a function I wrote for caching images and avoid memory leaks, you can use imageNamed instead or other technique that retrieves an image from a bundle.

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

Sidebar

Related Questions

I'm trying to set the UIRequiredDeviceCapabilities properties in my Info.plist file. My app requires
I am creating a Table View in viewDidAppear, because my app requires it to
I have an app that requires user to take a picture and then upload
For my app, I have a fairly complex set of configuration options that user
I have one particular request in my app that requires Basic authentication, so I
Last December, I set up an app for a client who wanted to pull
Problem: I'm writing an Android app, and one of its features requires Open Accessory
When submitting an app to the iOS App Store, one is required to declare
I am developing one app , which is required to integrate Google checkout.I am
i am implementing one app related to animation. My require ment is, i have

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.