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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T14:04:27+00:00 2026-06-05T14:04:27+00:00

I have a splitviewcontroller based application, but the problem is the split view comes

  • 0

I have a splitviewcontroller based application, but the problem is the split view comes into picture after two modal views.

  1. for login
  2. some other useful info for the user.

Now I know that splitview controller should always be the root view controller. So what i do is create three objects in my appDelegate class.
A , B, and split view controller C.

the order of navigation is A–>B–>C;

so in the app delegate this is what i do..

self.loginViewController=[[LoginViewController alloc] init];
self.window.rootViewController = self.loginViewController;

and then once the login button is pressed this is what I do from the loginView controller..

TSAppDelegate *appDelegate=(TSAppDelegate *)[[UIApplication sharedApplication] delegate];
                appDelegate.meetingsViewController=[[MeetingsViewController alloc] init];
                [UIView
                 transitionWithView:appDelegate.window 
                 duration:0.8
                 options:UIViewAnimationOptionTransitionCrossDissolve
                 animations:^(void) {
                     BOOL oldState = [UIView areAnimationsEnabled];
                     [UIView setAnimationsEnabled:NO];
                     appDelegate.window.rootViewController=appDelegate.meetingsViewController;    
                     [UIView setAnimationsEnabled:oldState];
                 } 
                 completion:nil];

this here presents the second view…
and similarly I show the split view controller if some action is performed on the second view controller…

So my question is if it is the correct way to do it… ? (This works fine by the way and also its an enterprise application)

P.S. I also tried making the split view controller as the rootviewcontroller and adding the other view controllers views as its subview but that doesn’t work properly.

  • 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-05T14:04:28+00:00Added an answer on June 5, 2026 at 2:04 pm

    Sure, it’s perfectly fine to reassign the window’s rootViewController.

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

Sidebar

Related Questions

I'm implementing a split view based application. I have 3 tabs for 3 root
I have created a split view application that begins with a modal view splash
In iOS 5, I have created a splitViewController based application in which I have
I have a split view-based app that presents a master-detail interface, and uses a
I have rotation problem on UISplitViewController . In my case, after calling present modal
I have a SplitViewController which has two UITableViewControllers - one master/root one detail. Everything
I have made my application universal for iPhone and iPad (window-based application; universal) from
I have a SplitViewController based app. It uses a rootViewController inside a popoverController. The
I have a spliviewcontroller based ipad application. When the tableviewcell is selected from rootviewcontroller
I have a problem with the splitviewcontroller. I have the code below and when

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.