【问题标题】:What is the default fontsize, fontname and shadow for titles in Navigation Bar?导航栏中标题的默认字体大小、字体名称和阴影是多少?
【发布时间】:2010-03-13 13:27:53
【问题描述】:

我试图在 self.navigationItem.rightButton 上有一个按钮,用于切换放置在 self.navgivationItem.titleView 中的分段控件。但是,这将删除 self.title 时首先设置的标题导航栏已创建.. 我不知道我的方法是否不好,但我想我可以在 UILabel 和 titleView 中的分段控件之间旋转。

它可以按我的意愿工作,但是我无法弄清楚导航栏中的默认标题是什么大小和字体以及 shadowoffset 和 shadowcolor ..你能帮我一个解决方案,要么不强迫我覆盖navigationItem.titleView 或帮助我找出使 UILabel 看起来与默认标题完全一样所需的信息。

感谢您的帮助。

【问题讨论】:

    标签: iphone uilabel uisegmentedcontrol uinavigationitem titleview


    【解决方案1】:

    在代码中,类似于:

    http://www.iphonedevsdk.com/forum/iphone-sdk-development/11648-change-uisegmentedcontrol-font-size.html

    应该有帮助,除非您要查询 UILabel 的大小、名称等。

    【讨论】:

      猜你喜欢
      • 2012-03-26
      • 2011-06-01
      • 1970-01-01
      • 2013-08-28
      • 1970-01-01
      • 1970-01-01
      • 2013-04-16
      • 2016-01-30
      • 1970-01-01
      相关资源
      最近更新 更多