iOS 7中缺少带有长屏标题的后退按钮标题 [英] Back button title missing with long screen title in iOS 7

查看:66
本文介绍了iOS 7中缺少带有长屏标题的后退按钮标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到屏幕标题很大时,缺少后退按钮标题。我需要显示整个标题。有什么解决方法吗?

I am seeing that "Back" button title is missing when my screen title is big. I needed to show the entire title. Is there any workaround to this?

请参见附件中带有长标题的导航栏的屏幕截图。

Please see attached the screenshot of navigation bar I see with long title.

推荐答案

减小屏幕标题。您可以使用UILabel的 titleView 对其进行控制。好处是您可以设置其大小,并且可以截断其文本和/或在文本太大的情况下占据两行(而不是仅增长,就像 title 确实)。

Make your screen title smaller. You can take control of it by using a titleView that's a UILabel. The advantage is that you can set its size, and that it can truncate its text and/or make the text occupy two lines if the text is too big (rather than just growing, as the title does).

这篇关于iOS 7中缺少带有长屏标题的后退按钮标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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