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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:26:16+00:00 2026-05-29T09:26:16+00:00

I am new to iPad development (or iPhone for that matter :) ) and

  • 0

I am new to iPad development (or iPhone for that matter 🙂 ) and I am building an app with a Split View Controller.

The thing is the first screen should be a single screen. I want the user to write user/pass data to connect to a remote server, and there’s not really anything to show in the master view.

I know I can return YES in the splitViewController:shouldHideViewController:inOrientation:, and that works fine for the first screen, but I’d like to get the two views when the user taps the login button and the credentials are validated.

I can put some condition in shouldHideViewController and that shows the two views in the second screen and only the detail in the first, but shouldHideViewController is only called if I rotate my iPad, not when I perform the segue.

Do you have any tips to do this? Should I change my UI approach to something else? Any suggestions are welcome.

  • 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-29T09:26:17+00:00Added an answer on May 29, 2026 at 9:26 am

    starting from scratch is a good idea. You have more control over whats going on IMO.
    At your starting point you want to add your LoginViewController.

    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
    {
        self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
        self.loginController = [[LoginViewController alloc] initWithNibName:@"LoginViewController" bundle:nil];
        self.window.rootViewController = self.viewController;
        [self.window makeKeyAndVisible];
        return YES;
    }
    

    Later when the authentication process has finished you want to continue with SplitView, right?

    - (void)continueWithSplitView {
    
        UINavigationController *leftNav = [[UINavigationController alloc] initWithRootViewController:self.masterViewController];
        UINavigationController *rightNav = [[UINavigationController alloc] initWithRootViewController:self.detailViewController];
    
        self.splitViewController.viewControllers = [NSArray arrayWithObjects:leftNav, rightNav, nil];
        self.view.window.rootViewController = self.splitViewController;
    }
    

    Notice that in both methods your desired viewController is set as the rootViewController property of UIWindow. This will automatically add the view of your controller as the top level view in UIWindow.

    Furthermore make sure that you are following the MVC pattern e.g. a model object for your credentials organisation.

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

Sidebar

Related Questions

im new to ipad/iphone development. what are some ways to skin an ipad app?
I am new to iOS (iphone and ipad) development. I am developing an app.
I'm new to iPad development and I'm trying to debug an app that connects
I'm very new to game development (iPhone/iPad specifically, if that matters at all) and
New to Objective-C iPhone/iPod touch/iPad development, but I'm starting to discover lots of power
I'm new to iPhone/iPad development. I'm looking for a way to visually groups some
I am new to iPhone development. I am creating an app where I take
We are new to iOS development and this is our first application for iPad
I am very new to iPhone/iPad development. can you please help me create this
I am new to iPad/iPhone apps/games development. I am developing a game. The game

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.