Hide navigation button on navigation bar in iOS History

I would like to hide the navigation bar button, which is part of the Story panel, I tried the following different code snippets in the detailed view. Nothing seems to work for me.

self.navigationItem.hidesBackButton = YES;

self.navigationItem.backBarButtonItem=nil;

PS: I also have a tab bar along with a navigation bar in my bulletin board.

+5
source share
5 answers

Add this line to the viewDidLoad of your ViewController, where you want to hide the button on the back panel:

[self.navigationItem setHidesBackButton:YES];

Successfully tested in a storyboard project.

+8
source

try it

self.navigationItem.hidesBackButton= YES;
+1
source

navigationController (, ), :

myViewController.navigationItem.leftBarButtonItem = nil;
myViewController.navigationItem.hidesBackButton=YES;
+1

:

self.navigationController.navigationBar.hidden = YES;

.

- , , , , , ...

-1

, .
"", :

self.navigationController.navigationItem.leftBarButtonItem.hidden = YES;

:

self.navigationItem.leftBarButtonItem.hidden = YES;

BarButton, , .

-1

All Articles