How to change text on a back button

前端 未结 20 2140
无人及你
无人及你 2020-11-29 17:24

By default the back button uses as a text on it a title of a viewcontroller. Can I change text on the back button without changing a title of a view controller? I need this

20条回答
  •  囚心锁ツ
    2020-11-29 17:41

    You can do it in the storyboard. Find the view controller you want to go back to (the one with the long title), select it's Navigation Item, and open the Attributes Inspector (Alt+Cmd+4), insert the custom Back Button title.

    enter image description here

提交回复
热议问题