Corrupt UINavigationController on iPad + Master Detail + TabBar

I have this nasty problem and they have searched all over the world. I think there are too many related terms that change my searches. So here it is:

I have a master-detail application on an iPad. The main view controller is the tab bar controller. Each tab is a navigation controller that holds the corresponding root controller in place. Like this: Storyboard representation of my project

, , , . , . , " /"

iPad . , , . .

, , , - .

Edit:

:

[self performSegueWithIdentifier: @"pushMyControllerSegue" sender: self];

pushMyControllerSegue style = push destination = current

, ForSegue:

- (void) prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
    if ([segue.identifier isEqualToString:@"pushMyControllerSegue"]) {
        MyController *myController = segue.destinationViewController;
        myController.delegate = self;
    }
}
+4
2

, , " ", .. , , .

, . , . . , - . , .

( , performSelector:withDelay, , . , )

, ( - ) -

- (void)splitViewController:(UISplitViewController *)svc popoverController:(UIPopoverController *)pc willPresentViewController:(UIViewController *)aViewController

. performSelector:withDelay.

, Apple - ... , - .

0

, - segues . segues, :

MyController *vc= (MyController*)[self.storyboard instantiateViewControllerWithIdentifier: @"YOUR_VIEWCONTROLLER_IDENTFIER"];
vc.delegate=self;
[self.navigationController pushViewController:vc animated:YES];
0

Source: https://habr.com/ru/post/1528777/


All Articles