问题
I have setup a UIViewController
(RootViewController) with two container views connected to two UITableViewController
s. Each of the UITableViewController
is selected based on the UISegmentedControl
in the RootViewController.
I'm able to segue as I intended to, but the bar button items in the child controllers (UITableViewController
) are not responding.
The navigation bar button items in the two child view controllers are different from each other.
Please find a screenshot of my storyboard. (Only one child controller displayed)
How to setup different navigation bar buttons for each of those container view controllers?
回答1:
Did you push them on the UINavigation stack?
func pushViewController(ViewController, animated: true)
来源:https://stackoverflow.com/questions/40101381/different-navigation-bar-button-items-in-different-child-viewcontrollers-from-tw