如何去掉NavigationBar的backButton 分类: ios开发 2015-01-26 11:39 323人阅读 评论(0) 收藏

当使用[self.navigationControllerpushViewController:ucenter animated:YES]进行

push一个viewController之后,默认生成的back button并不令人 满意,有时候需要更改

当时首要就是去掉原有的back button

很多地方都有说,但是没说明白,去掉是在push之前

ucenter.navigationItem.hidesBackButton = YES;

[self.navigationControllerpushViewController:ucenter animated:YES];

这样代码才会生效。

如图:

版权声明:本文为博主原创文章,未经博主允许不得转载。

posted @ 2015-01-26 11:39  欣哥传奇  阅读(121)  评论(0编辑  收藏  举报