I would like to know how I can add a back button to my UINavigationBar , I know that if I embed the navigation controller in my main view, all this will happen automatically, but thatβs not what I'm trying to do, in fact, a button back can go to any other view to which I connect segue, should not even be back.
The back button should be a back button for system navigation, I do not want to install image files for my buttons.
I tried dragging the panel element into the storyboard, but nothing appears, it doesn't seem to do this trick. The navigation bar has been moved to the view in the storyboard (not created programmatically), and it displays just fine.
I addressed the following related issues :
-> How to add the back button to the UINavigationBar manually?
-> How to add a button to a UINavigationBar?
-> How to programmatically add a UINavigationBar and a button back on it
but they all point to a simple embedding of the view in the navigation controller, which again is not what I'm trying to do.
If someone can help me, please provide a sample code that I would really appreciate.
source share