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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:18:51+00:00 2026-06-12T16:18:51+00:00

I have a problem with my app organization. I want an home view with

  • 0

I have a problem with my app organization.
I want an home view with four buttons. Each one pushing the view to a splitView.

So in my home view, I do not want any masterView displayed, ether in portrait or landscape mode.
But in my four next views, I want the masterView displayed at any time and I want to be able to have a back button to return to the home view.

My question is how do I achieve such a thing ?

  • Do I have to create my home View as the rootViewController of the app and then create one splitView per button. Then create a back button to dismiss the splitView.
  • Do I have to create one single splitView and play around with the master view display. I can’t figure out how to hide my master class in portrait mode on certain views and show it on other views.
  • 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-12T16:18:52+00:00Added an answer on June 12, 2026 at 4:18 pm

    A UISplitViewController has to be the root view controller.

    So you would start your app with a homeViewController that contains four buttons, each of which would tell your app delegate to remove the home view controller from root and create a splitViewController and make that the root.

    Obviously to go back you would need a button on your splitViewController that would tell the app delegate to remove the splitViewController and replace with the newly loaded homeViewController.


    an example of getting a viewController from a storyboard and attaching it to the window

    window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    UIStoryboard *mainStoryboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil];
    UIViewController *homeViewController = [mainStoryboard instantiateViewControllerWithIdentifier:@"HomeViewController"];
    [window addSubview:homeViewController.view];
    [window makeKeyAndVisible];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Problem: In our organization we have a home grown single-sign-on app written in c#/.Net2
I have a Problem in my App with the Dirty Memory Size and want
I have some problem with my app. My activity is not a native activity
I have a curious problem: My app is distributed through ClickOnce. I recently installed
I have problem in declaring the intents on my app. I have a form
I have a problem regarding Android App. I have created an application that download
I have problem with Timeout, when I run a command through app, a timeout
I'm writing chat client/server app with c# and I have problem with threading. I
I'm writing an app in Visual Studio C++ and I have problem with assigning
I'm developing small FTP upload app. for mac (10.6 if it matters) Have problem

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.