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

How can I detect that an app has just returned from background mode? I
In my SWT Java app I often want to return information from inside a
I have a single Rails 2.2.2 app that I want to 'share' with multiple
I'm using Authlogic for authentication in my app, using the standard User and UserSession
I'm writing a very simple CRUD app that takes user stories and stores them
I've got an app that has two parts. Basically, the first part shows a
In my asp.net mvc app I want to check if a certain url returns
I want our app to show the online help page (so it's always up
I want my app to loop in python but have a way to quit.
If I want my app to behave differently on a jailbroken iPhone, how would

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.