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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T16:15:02+00:00 2026-05-20T16:15:02+00:00

This one make me go crazy. I am building an iphone app where the

  • 0

This one make me go crazy. I am building an iphone app where the first view is a login view. UIViewController, when the user succesfully logs in i want to display i table view. Somehow i just have big problems doing this.

In my app delegate i load my loginViewController, and then i want from the loginViewController load my listViewController.

What is the logic behind switching to a UITableViewController from a UIViewController?

  • 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-20T16:15:03+00:00Added an answer on May 20, 2026 at 4:15 pm

    you’d better to do it in your app delegate and surely NOT add the UITableViewController.view to the UIViewController.view… just add it to the UIWindow and then dismiss the old UIViewController (removeFromSuperView it’s view and then release it)

    EDIT:

    that’s how i manage:

    i add a method in my appDelegate:

    -(void)switchMainView;
    

    and from my UIViewController i just call it with this:

    [[[UIApplication sharedApplication] delegate] switchMainView];
    

    in switchMainView i just
    remove my UIViewController.view from superview,
    release UIViewController,
    alloc the UITableViewController and init it, then
    add its view to the window app:

    -(void)switchMainView{
        if (mainView!=nil){ // mainView is the UIViewController
            [mainView.view removeFromSuperview];
            [mainView release];
            mainView = nil;
        }
        Menu *vc; // Menu is my class, subClass of a UITableViewController
        vc = [[Menu alloc] init];
        nc = [[UINavigationController alloc] initWithRootViewController:vc];
        [window addSubview:nc.view];
        [vc release];
    }
    

    and then i do the same for going back, eventually

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

Sidebar

Related Questions

This one has me kind of stumped. I want to make the first word
Let's make this very easy. What I want: @array = qw/one two one/; my
How is it that tools like this one can make an ajax style call
Is there a way to make this one liner better looking? @var = params[:key1][:key2]
How can I make an prepared statement of this one? Statement stmt = con.createStatement();
I'm really desperate on this one. I'm trying to make a Framework which you
This is kind of crazy and I am not sure what's wrong. I want
This one will take some explaining. What I've done is create a specific custom
This one has been bugging me for a while now. Is there a way
This one has me scratching my head. I'm running Subversion 1.3.1 (r19032) on Ubuntu.

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.