I'm using Swift 3 and I have a problem. Indeed, I want to change programmatically my back button title, but it doesn't work anytime.
It works great when my title is short, but when the length is greater than 20 chars, it only display "Back".
To change the title, I use this in the parent controller:
let backItem = UIBarButtonItem()
backItem.title = "new name"
navigationItem.backBarButtonItem = backItem
Do you know why it doesn't display the title when it is long?
Thanks for your help