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

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

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

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

ucenter.navigationItem.hidesBackButton = YES;

[self.navigationControllerpushViewController:ucenter animated:YES];

这样代码才会生效。

 

相关文章:

  • 2021-07-26
  • 2022-12-23
  • 2021-11-29
  • 2021-11-29
  • 2021-12-25
  • 2021-07-18
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-19
  • 2021-11-24
  • 2021-08-18
相关资源
相似解决方案