I have a UINavigationController. At the second level of my hierarchy, I want to show a view controller with a toolbar into which I inserted a segmented control. Through it, the user can choose between two "views" of the same page, which we can call A and B (for example, in the Calendar application).
When the user presses segment A, view A should be displayed. When the user presses segment B, view B should be displayed
A and B are complex views, so I prefer to manage them in two separate view controllers called AViewController and BViewController.
I originally thought of inserting AViewController and BViewController into a UITabBarViewController, but in the official pushViewController documentation: animated: I read that the push request controller "cannot be an instance of a tab bar controller."
Do you know how I can switch between AViewController and BViewController without using UITabBarViewController?
Many thanks!
Larry source
share