user3926776
user3926776

Reputation:

BackButton not hiding in navigationController

I've been struggling with this issue for several hours. I have an Authentication ViewController which will push to a tabBarController if the user is logged in. This will automatically create a backButton in the ViewControllers connected to the tabBarController. i'm trying to hide this back button. Here is an image of my tabBarController and the viewControllers:

enter image description here

I've tried several things like:

self.navigationItem.hidesBackButton = YES;
self.navigationItem.leftBarButtonItem=nil;
[self.navigationItem setHidesBackButton:YES animated:YES];

None of the above seem to help. Could it be something with the tabBarController? since I do not have any issues with other viewControllers which isn't connected to tabBarController.

Upvotes: 0

Views: 100

Answers (1)

user3926776
user3926776

Reputation:

The Issue was that my initial view Controller was embedded in a navigationController. i Had to hide the navigationBar in that controller in order to fix the issue. Hopes it helps someone else.

Upvotes: 1

Related Questions