I have a UITableViewController A that is pushing UITableViewController B onto the stack.
In A i have the code:
self.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Trending"
style:UIBarButtonItemStylePlain
target:self
action:@selector(backButtonClicked:)];
backButtonClicked: is also implemented.
B has the title Trending, but when I click it, it doesn’t ever reach backButtonClicked:
Why is this?
Try either setting the delegate:
Or using the left button. Sometimes the back button doesn’t work with certain views and I have had to use the left button instead:
Also, you can try setting B’s button item instead of A: