I have 3 view controllers, in which i have to segue from first to third via the second controller, without the second controller being viewed. The second controller has a button which does the segue controller 2--> controller 3.
i have tried
[self performSegueWithIdentifier:@"addItem" sender:self ];
in second controller's viewDidLoad. But, instead of segueing to the 3rd controller it is going to an unknown controller . with a message in terminal saying . nested push animation can result in corrupted navigation bar. Finishing up a navigation transition in an unexpected state. Navigation Bar subview tree might get corrupted. when i press back button on that unknown controller, it is coming back to my intended destination(3rd controller) and it is working well from there .