문제

want to hide the back button navigation bar, I have tried the below all statements but none of them worked for me

[self.navigationController.navigationItem setHidesBackButton:YES]; //1
[self.navigationController.navigationBar.backItem setHidesBackButton:YES]; //2
self.navigationController.navigationItem.hidesBackButton = TRUE;  //3
[self.navigationItem setHidesBackButton:YES animated:YES]; //4
 self.navigationItem.hidesBackButton = NO; //5
도움이 되었습니까?

해결책

try this,

- (void)viewDidLoad
{
[super viewDidLoad];
self.navigationItem.leftBarButtonItem=nil;
self.navigationItem.hidesBackButton=YES;
}

다른 팁

Try this:

[self.navigationController.topViewController.navigationItem setHidesBackButton:YES];

Try to see your 5th statement that you have set NO So please change it.It will work fine.

 self.navigationItem.hidesBackButton = YES; //5
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top