Add another button next to the “back” button on the left of a UINavigationBar

后端 未结 2 1715
余生分开走
余生分开走 2021-01-01 19:28

I\'ve tried this for hours but I still cannot solve it. When using UINavigationController and push a new view controller on top, I got a free \"back\" button on the left of

2条回答
  •  失恋的感觉
    2021-01-01 20:12

    SWIFT 5 this worked for me. Thanks

    self.navigationItem.leftItemsSupplementBackButton = true
    

提交回复
热议问题