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

The Archive Base Latest Questions

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

In my app, I want two modes that the user can choose from, using

  • 0

In my app, I want two modes that the user can choose from, using a tab bar controller. Buy view and Sell view. But in sell view and in buy view, there are several views each. “List of offers”, “offer details”, “make offer”, etc.

I was thinking of changing the view belonging to the “sell view”-tab on button clicks, but that seems wrong.

What is the correct way to handle this? Should the “buy” and “sell” tabs each be linked to a view, which in turn contains an array of the several subviews list, details, make offer, etc.?

And how do I access the “sell” view from my “offer list” view buttons?

Thx a bunch,
MrB

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

    In the simpliest form, the following will work

    Each tab gets it’s own UINavigation controller. Each navigation controller has it’s own collection of UIViewControllers.

    When the user clicks on a tab they are presented with the corresponding nav controller. Each nav controller could show a UITableViewController that has a selection of sub view controllers to select.

    the following is semi-psuedo code.. fyi

    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
    {
        // Override point for customization after application launch.
    
        UITabBarController *tbc = [[UITabBarController alloc]init];
        UIWindow *w = [[UIWindow alloc]initWithFrame:[[UIScreen mainScreen] bounds]];;
        self.window = w; //property defined in the .h file
        [w release];
    
    
    
        //add the TabBarControllers view to the window.. this will be presented to the user
        [self.window addSubview:tbc.view];
    
    
        //BUT.. the tab bar doesnt have any items to show.. lets solve that
    
        NSMutableArray *a = [[NSMutableArray alloc]init];
    
        // you should have two ViewControllers already created, ViewControllerA and ViewControllerB, or whetever you want to call them.
        // they should both inherit from UITableViewController (for our example)
        // then create two UINavigationControllers, initialize each one with the corresponding ViewController (ViewControllerA and B);
        // add each UINavigationController to our array above
    
    
    
    
        //assign our view controllers;
        tbc.viewControllers=a;
        [a release];
    
    
    
        [self.window makeKeyAndVisible];
        return YES;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My app has two distincts modes. There's a tab bar controller in the app
I have an App that I want to have two version in the App
I have two screens on my app that I want to present to users,
In this app I want that as I click on button the data from
How can I detect that an app has just returned from background mode? I
Im building a Rails app, and there are two models that I want to
I'm working on an app where a user can have one of two kinds
I want to design simple app widget which has two textview and two button
I want to use push notification in my app.i want to know that do
I'm writing a very simple CRUD app that takes user stories and stores them

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.