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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T02:32:01+00:00 2026-06-16T02:32:01+00:00

I want to realize application with login page. I’ve got the separate authorization page

  • 0

I want to realize application with login page.

I’ve got the separate authorization page based on UIViewController with xib file, which user should see first when app loaded and I’ve got main application based on UITabBarController in MainStoryboard.storyboard, where user should redirect after success login.

To launch app with the login page I do in AppDelegate.m

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions

        NewUserViewController *controller = [[NewUserViewController alloc] init];
        self.window.rootViewController = controller;

        [self.window makeKeyAndVisible];

How can I switch to UITabBarController from NewUserViewController after success login?

I try to (in NewUserViewController.m)

MainTabBarViewController *myViewController = [[UIStoryboard storyboardWithName:@"MainStoryboard" bundle:NULL] instantiateViewControllerWithIdentifier:@"MainTabBarViewController"];

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

If you can offer another structure of this app I will happy!

I’m sorry for my English.

  • 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-16T02:32:02+00:00Added an answer on June 16, 2026 at 2:32 am

    You can’t push to the tab bar controller because its not embedded in a navigation controller. I think a better structure is to make the tab bar controller the root controller of the window, then present your login controller modally from the viewDidAppear method of the controller in the first tab. If the login is successful, just dismiss the login controller, and your ready to go. If the login fails, present another view explaining to the user what happened, and go back to the login controller for another try.

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

Sidebar

Related Questions

Now I want to automatic redirect to facebook application's index page after user installing
I want to realize to change current user in my application. I have the
want to open pdf file when a user clicks on hyperlink shown in gridview
Hej folks, I got an UIView in my application and want to implement kind
I want to create a WPF application that allows the user to create graphical
I've made simple nodejs application by using nodejs+express. Now I want to make user
In the near future I want / will design an intranet application , which
I want to realize the following scenario: The frontend is based on HTML5 /
i want to realize a construct in MS SQL that would look like this
What I want to realize is the following: In a JSP x 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.