UINavigationController's back button disappears?

前端 未结 2 1597
孤街浪徒
孤街浪徒 2021-01-04 20:43

I notice something strange happens to one of my view controller: the back button disappears, yet it\'s possible to go back to previous view controller by tapping the top lef

相关标签:
2条回答
  • 2021-01-04 21:02

    Oh dear. In the implementation of the previous view controller, I accidentally set self.title to @"", which causes this annoying bug.

    Remove this line solves the problem.

    0 讨论(0)
  • 2021-01-04 21:06

    I had a recursive navigation controller, and this also happened to me, I used this code to fix it:

    self.navigationItem.leftItemsSupplementBackButton = true
    
    0 讨论(0)
提交回复
热议问题