logo
down
shadow

UINavigationController as detail view of a UISplitViewController


UINavigationController as detail view of a UISplitViewController

By : user3862140
Date : November 22 2020, 07:01 PM
this will help I was mistaken. the erroneous behavior persists in the latest release, but I found the solution for my case. You must not derive a custom UINavigationController subclass. It even says so in the view controller programmers guide. Following that restriction I was able to solve all my issues.
code :


Share : facebook icon twitter icon
Landscape UISplitViewController when using a UINavigationController in the detail

Landscape UISplitViewController when using a UINavigationController in the detail


By : user3053612
Date : March 29 2020, 07:55 AM
wish helps you I found a way that could be useful for someone, even though I do not really think this is a clean way of handling the navigation controller.
In the split view controller delegate I implemented the splitViewController:willHideViewController:withBarButtonItem:forPopoverController: method this way:
code :
- (void)splitViewController:(UISplitViewController*)svc
     willHideViewController:(UIViewController *)aViewController
          withBarButtonItem:(UIBarButtonItem*)barButtonItem
       forPopoverController:(UIPopoverController*)pc
{
    barButtonItem.title = NSLocalizedString(@"menu", nil);

    myAppDelegate *app = (myAppDelegate *)[[UIApplication sharedApplication] delegate];

    UINavigationController *nav = [app.splitViewController.viewControllers objectAtIndex:1];
    UIViewController *ctrl = [nav.viewControllers objectAtIndex:0];

    if (!ctrl.navigationItem.backBarButtonItem && !ctrl.navigationItem.leftBarButtonItem) {
        ctrl.navigationItem.leftBarButtonItem = barButtonItem;
    }
}
UISplitViewController - multiple detail views with UINavigationController

UISplitViewController - multiple detail views with UINavigationController


By : Russian Coder
Date : March 29 2020, 07:55 AM
I wish this help you There are two things that I think could be the problem here. You should include the rest of your code. Specifically the part where you change the detail view controller when the user performs an action in the master.
Master detail uisplitViewController and UINavigationController view

Master detail uisplitViewController and UINavigationController view


By : Raphael Morsch
Date : March 29 2020, 07:55 AM
it should still fix some issue You need to embed the table view controller in a navigation controller.
Then you can push the detail view with this code:
code :
BookmarkEditorController* bookmarkEditorController = [[[BookmarkEditorController alloc] initWithBookmark:[[ComputerBookmark alloc] initWithBaseDefaultParameters]] autorelease];
[bookmarkEditorController setTitle:NSLocalizedString(@"Ajouter Connexion", @"Add Connection title")];
[self.navigationController pushViewController:bookmarkEditorController animated:YES];
[bookmarkEditorController setDelegate:self];
[bookmarkEditorController setHidesBottomBarWhenPushed:YES];
Detail UINavigationController issue in UISplitViewController

Detail UINavigationController issue in UISplitViewController


By : Nelaka Senura
Date : March 29 2020, 07:55 AM
may help you . The issue has to do with the fact that you're trying to embed a tab bar controller in a navigation controller, and make that the detail view controller for a split view controller.
The tab bar controller would expect to change navigation items for the selected tab, but your hierarchy is opposite of what it expects.
UISplitViewcontroller with master UINavigationController and detail UINavigationController

UISplitViewcontroller with master UINavigationController and detail UINavigationController


By : MyUser8767
Date : March 29 2020, 07:55 AM
I wish this helpful for you yes you can do that but u need to create seperate view controller for master and detail create new project as split view controller and remove split view from xib so that we are creating split view from code .
shadow
Privacy Policy - Terms - Contact Us © 35dp-dentalpractice.co.uk