开发者

After pushViewController, how to disable the backBarButtonItem?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜