Storyboard UINavigation Controller Back Button Text

倖福魔咒の 提交于 2019-11-30 23:19:29

The back button will show the title of the previous view and if no title is set it'll show 'Back'.

So in your prepareForSegue method, you can change the title of the current view before the next view is pushed. The back button will then show whatever you set the title to.

The accepted answer is a hack, this is the way to do it...

  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...

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!