I am troubling with an issue and I cannot be able to solve it!
The scenario is the next one: - I have 4 view controller (main view controller is an UITableView, settingsVC, messsageDetailController and moreInfoVC). - I also have a listener (NSObject) which is listening a port for different events to receive.
Then, functionality is the next one: - I launch the listener to receive those events. When the listener receives a new event, this listener communicates to the mainViewController, and from this mainVC I create a new instance of messageDetailController. *Im using the below code (mainVC):
[self performSegueWithIdentifier:@"MessageDetail" sender:self];
I got all this functionality, but my problem starts when my listener receives more than one event and then, consequently, I create more than one messageDetailController reference. That problem affects directly to my NavigationController which is popping me out next messages: - nested push animation can result in corrupted navigation bar - Unbalanced calls to begin/end appearance transitions for . - Finishing up a navigation transition in an unexpected state. Navigation Bar subview tree might get corrupted.
I hope that I explained myself properly and anyone could help me.