I have a UINavigationBar
with two different screens.
On both screens the NavigationBar has the same title.
So the BackButton should have just Back
as text instead of the NavigationBar's title.
If I set the parents ViewController title to nil
I have a backButton with the text Back
, which gets localized automatically by iOS.
I know I can set the text to back as described in this question: How to set the text of a back button on a UINavigationBar?
However, then the Back
is hardcoded and wont get translated by iOS automatically.
I don't want to maintain the localizations by myself in the Localizable.strings
but rather use the predefined values from iOS.
I would like to always have a title on my NavigationBar and a backButton which says Back
and gets localized automatically using the by iOS defined values.
Does somebody know if and how such an behavior could be achieved?