How to change text on a back button

前端 未结 20 2164
无人及你
无人及你 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:56

    If you are using storyboard:

    1. Open StoryBoard
    2. In Document Outline window find ViewController to which you want to return to
    3. Click on Navigation Item of that ViewController
    4. In Attributes explorer change Back Button value to your custom tile

    That is it, enjoy...

提交回复
热议问题