开发者

After pushViewController, how to disable the backBarButtonItem?

开发者 https://www.devze.com 2022-12-11 19:40 出处:网络
After pushViewController, how to disable the backBarButtonItem, that going back开发者_StackOverflow will not be possible?navigationItem.hidesBackButton = YESif you use a storyboard, click Navigation I

After pushViewController, how to disable the backBarButtonItem, that going back开发者_StackOverflow will not be possible?


navigationItem.hidesBackButton = YES


if you use a storyboard, click Navigation Item and add "hidesBackButton" path into the Key Path Attributes tag.

After pushViewController, how to disable the backBarButtonItem?


I ran into this issue and used following to hide the nav bar:

[self.navigationController setNavigationBarHidden: YES animated:YES]; 
0

精彩评论

暂无评论...
验证码 换一张
取 消