iOS故事板后退按钮 [英] iOS Storyboard Back Button

查看:115
本文介绍了iOS故事板后退按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图创建推送屏幕。而我的后退按钮文本是后退,尽管他的父亲屏幕标题。此外,当我尝试在Xcode的界面构建器中更改文本时,它不会更改我的后退按钮文本。如何使用Xcode界面构建器(故事板)更改它?

Im trying to create "push" screen. And My back button text is "Back" despite of his "father" screen title. Moreover, when I try to change text in interface builder of Xcode, it doesn't change my back button text. How can I change it by using Xcode interface builder (storyboard)?

推荐答案

以下是您需要执行的操作:

Here is what you need to do:

结果:

重要提示:您应该指定后退按钮文本,而不是指向后面看按钮的VC,而不是指向所需屏幕的父的VC。

Important: you should specify Back Button text not for the VC where you see back button but for the VC that is the "parent" of the desired screen.

这篇关于iOS故事板后退按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆