I have a container view embedded in a view controller. The container is used to display different view controllers. How can I change the title or add a button to the navigation bar in the parent?
Thanks!
I have a container view embedded in a view controller. The container is used to display different view controllers. How can I change the title or add a button to the navigation bar in the parent?
Thanks!
You can access the navigationItem that controls those attributes directly as so (assuming self = your childViewController:
[self.parentViewController.navigationItem setTitle:<Your Text>];
[self.parentViewController.navigationItem setLeftBarButtonItem:<Your Button>];