From the rootViewController
I navigate to a UIViewController
if (self.contr == nil) {
ExampleViewController *controller = [[Exampl
Try this in the goBack method :
[self.navigationController popToRootViewControllerAnimated:YES];
Presenting a modal view controller do not require you to pass through a UINavigationController
. I suggest you to change this:
[self.navigationController presentModalViewController:self.contr animated:YES];
[self.navigationController dismissModalViewControllerAnimated:YES];
to this:
[self presentModalViewController:self.contr animated:YES];
[self dismissModalViewControllerAnimated:YES];
Let me know if this helps.
If you are not hitting the breakpoint that means you did not connect them properly in the xib.
Have bind your Toolbar with File Owner?
As your UIBarButton is subview of UIToolbar so you have to bind Toolbar with File Owner.