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

Viewed 5783

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 the navigation bar. I want another button just next to it (to show a popover menu). I wonder what is the correct way to do that. Or I have to hide the free back button and make the same one by myself? If that's the case, I also need to pop the current view controller when pressing my own back button, right?

Thanks for your help.

2 Answers

SWIFT 5 this worked for me. Thanks

self.navigationItem.leftItemsSupplementBackButton = true
Related