Showing a UISplitViewController inside a pop over - ipad

I'm wanting to create a UI where I have a popover that comes from a button that and contains a split view UI with two table view controllers side by side.
The storyboard I have now has a normal page with a button, the button has a popover segue to a split view controller.
The split view controller has a master relationship to a navigation controller which has a root view controller of a table view controller.
The split view controller has a detail view controller to another navigation controller which again has a root view controller of a table view controller.
When I launch the pop up it only ever displays the master controller, not the two side by side.

UISplitViewCpntroller can only be the root view of an app - as such, you cannot put them in a UIPopover or any other non-root view.
You would have to create your own UISplitViewCpntroller type view (or look for some open source code).

Related

iOS Xcode: Editing Root View Controller

How to edit Root View Controller
Hello every one, I'm going crazy trying to find out how to switch a root controller with a table view inside, for a root controller with a normal view.
As you can see from the image I have the navigation controller pointing to a root view controller with a table view. Well I want that my navigation controller points to a root controller designed like the view controller in the right side.
How can I do that?
From the top of my head: Select the segue to the unwanted VC. Delete it. Ctrl-drag to the wanted controller from the navigation controller and set it as root.
You have to take the initial controller as navigation control, else you can not navigate from view controller as you did in your story board.
So select your view controller where a button is there(The left most in the story board). Then you can navigate to the screen.
So Your flow would be
Navigation controller (Make it Initial controller)
Connect the next view controller as root controller.
Then any controller you want can choose show/present type segue.
Hope it helps.

Relationship among split view controller, tab bar controller, and multiple tableview controllers

In my universal app with a split view controller at the top of the hierarchy, I want a tab bar controller with multiple table view controllers as the tabs. What should the storyboard and relationships look like?
I started with the default empty universal master/detail project. I got the standard split view controller with two navigation controllers pointing to the master table view controller and detail view controller. If I embed that master table view controller in a tab bar controller, that table view controller's detail view (actually, the detail view's navigation controller) remains the split view controller's detail view. When I add another table view controller and make it a tab of the tab bar controller, how to I hook that table view and its detail view to the split view controller? Whew.
Thanks!
...R
If I understand your desired structure properly, the graphic below should illustrate the relationships you want. (Direct Link to Full-Res Image: http://cl.ly/image/0S3y3V3O0930/Screen%20Shot%202015-05-21%20at%202.28.29%20PM.png)

Navigating to a Navigation view controller via button

I have a master detail class that has a navigation view controller. I have created another view controller which I want to use to load the navigation view controller via a button. I have added a view controller and have linked a button to the navigation view controller however when i test to see if the new view loads, I receive an error on the main.m
What am i doing wrong?
I think you need not take another navigation controller if you have navigation controller for the view controller having button and you can directly take view controller which you want (UITableviewController or UIViewController). Give connection from your button to that view controller

Single View Template add navigation

So I started out an app by selecting the single view application template. I have added some more views using storyboard and everything was working good but I now wanted a button to take the user back to the first view using [ self.navigationController popToRootViewControllerAnimated:NO]; but the issue being the template started out as just a viewController. Is there a way to turn the first view into a navigation or root view to make this work or do I have to start all over in a page application template??
Insert a navigation controller in your storyboard before your root view controller.
Set the navigation controller as your initial view controller.
Set the navigation controller's root view controller to what was originally your first view controller.

Dynamically Change Detail View Controller

I have a Split View controller set up in Storyboard, and I need to be able to change the Detail View Controller dynamically. By default, the Detail View Controller has a "relationship" segue to a Navigation Controller, which leads to the original Detail View Controller. How can I dynamically change this relationship to another controller?
You can do this a couple different ways. If you want to do it all in storyboard, you can create a segue from your master view controller buttons or cells to your detail view Controller and choose the "replace" segue option. You can also do this in code where your master view controller stores a reference to the detail view controller (UINavigationController) and replace out the root view controller.

Resources