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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T22:00:02+00:00 2026-05-25T22:00:02+00:00

Please help me with the issue mentioned below. My issue is, whether there is

  • 0

Please help me with the issue mentioned below.

My issue is, whether there is way to call the split view from another view, say after I tap on a button..?

For eg, as shown in the attached pic, when the app launches, it shows the first screen.

When the user taps on “Click” button, the split view opens up.

The user is able to perform all operations of the split view and when he presses the Home Button, he should be taken back to the first screen.

Is this possible..? How can I go about it..?

I am a beginner. Any help with code would be greatly appreciated..

PS: I have tried using MGSplitView and TOSplitView, but have not been able to achieve the solution to the above mentioned issue.

Thanks…

  • 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-25T22:00:02+00:00Added an answer on May 25, 2026 at 10:00 pm

    Check the foll code. This should easily help you to solve your issue.

       //Intialise the 2 views root and detail
        RootViewController * rootVC = [[RootViewController alloc] initWithStyle:UITableViewStylePlain];
    
        //To show the nav bar for root, add it into a UINavigationController
        UINavigationController * rootVCNav = [[UINavigationController alloc] initWithRootViewController:rootVC];
    
    
        DetailViewController * detailVC = [[DetailViewController alloc] initWithNibName:@"DetailView" bundle:nil];
    
        //initialise split view
        splitVC = [[UISplitViewController alloc] init];
        splitVC.viewControllers = [NSArray arrayWithObjects:rootVCNav,detailVC, nil];
    
        //Tell the split view that its delegate is the detail view.
        splitVC.delegate = detailVC;
        //tell root that the changes need to be shown on detail view.
        rootVC.detailViewController = detailVC;
    
    
        [rootVC release];
        [detailVC release];
        [rootVCNav release];
    
        //Here, we get the app delegate object of the project
        ProjectAppDelegate * appDel = (ProjectAppDelegate*)[[UIApplication sharedApplication] delegate];
    
        //get window object of the delegate
        UIWindow * window1 = [appDel window];
        //get the navigation controler of the window of app delegate.
        mainNav = [appDel rVC];
    
        //remove the current view from the window.
        [mainNav.view removeFromSuperview];
    
        //add the split view to the window
        [window1 addSubview:locSplitVC.view];
    

    Hope this helps you..

    Regards,
    Melvin

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

Sidebar

Related Questions

please help me to resolve this issue i have a view controller in a
please help on this issue: Within a loop, I first call a function, which
Please help me to understand the following issue. Look at the code example below:
Please help me about this issue... In my application i have calender where user
Please help regarding the following issue. I have enabled the Block popup option in
Please help me out on this explode() function issue. I am getting unexpected results
Someone please help. I have an interesting issue. I am trying to implement an
can you please help me with this issue the String class does not have
I have a question which I couldn't achieve, please help guys. Below is my
please help me solve this issue. I have a client using WCF. I don't

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.