I currently have a UINavigationController based application that works fine. I would like to take one of the view controllers that several levels deep in the UINavigationController stack look like a flip-side, as shown in Utility applications, etc. A very common thing.
The problem is that I created an intermediate view controller to manage as view controllers that will flip back and forth. Now the staging controller intercepts and redefines the navigation bar with its own inside the hierarchy. The NavigationBar from the existing view controller is masked, and its entire view shifts down.
I tried to do something like:
myFlipViewController.view = myOriginalViewController.view;
This breaks my whole mind from myOriginalViewController, as it has its own navigation controls. I just want myFlipViewController to act as a transparent proxy that will control the click of myOriginalViewController and othersideViewController. Navigation elements from myOriginalViewController should be displayed.
I tried the setNavigationBarHidden set among view controllers, but nothing similar does the trick.
What is the best way to present a flipViewController in the middle of the UINavigationController stack without interfering with it?
source
share