导航控制器的后退按钮不显示文本 [英] Navigation Controller Back Button Doesn't Show Text

查看:94
本文介绍了导航控制器的后退按钮不显示文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望它像这样:

但是我这样子:

我需要在后退"按钮中使用相同的后退"文本,但它只显示该死的图标.

I need the same "Back" text in the back button, but it shows just that damn icon.

这些是2个相同的导航控制器,相同的推/弹出式菜单,相同的初始化,但有不同的后退按钮.

Those are 2 identical navigation controllers, same push/pop, same initialization, but with a different back buttons.

我需要帮助,否则我今晚会发疯...

I need help, otherwise I will go crazy tonight...

推荐答案

后退"按钮将获得上一个导航栏的标题. 如果没有,它将显示默认的返回". 您的问题是,您将@"用作上一个导航栏的标题,因此它用@"重命名了后退按钮,这被视为空白".

The Back Button will get the title of the previous Navigation Bar. If there is not, it would show the default "Back". Your issue was that you put @"" as the title of your Previous Navigation Bar, so it renamed the Back Button with @"", which is seen as "blank".

这篇关于导航控制器的后退按钮不显示文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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