I'm trying to edit the tile of the back item in the navigation controller.
I have this scene, Navigation Controller -> Table View Controller -> TableViewController.
In the second TableViewController I want to rename the the back item from "xxxx" to "Back".
Is there a way to do via the StoryBoard, or should I do it programmatically?
This is what I've tried but it does not work:
let backItem = UIBarButtonItem()
backItem.title = "Back"
navigationItem.backBarButtonItem? = backItem
or
navigationItem.backBarButtonItem?.title = "back"
both of them in the viewDidLoad()