I have a navigation controller (navC), and I have a view controller (ViewC), which is a view derived from the root controller. I have a hidden button for viewing with code:
[[self navigationItem] setHidesBackButton:YES];
After ViewC, I clicked on the tab bar controller (tabbarC). In the view controller associated with the first tab in tabbarC, I tried to hide the back button with the code:
[[[self tabBarController] navigationItem] setHidesBackButton:YES];
But the back button is still visible when I click it; it disappears ... can anyone help me hide the back button for all views in tabbarC.
source share