如何去掉NavigationBar的backButton

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

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

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

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

ucenter.navigationItem.hidesBackButton = YES;

[self.navigationControllerpushViewController:ucenter animated:YES];

这样代码才会生效。

 

posted on 2012-10-18 00:01  easonoutlook  阅读(3955)  评论(1编辑  收藏  举报