导航栏中标题的默认字体大小、字体名称和阴影是什么?

发布于 2024-08-25 04:39:01 字数 343 浏览 4 评论 0原文

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

它按照我想要的方式工作,但是我无法弄清楚导航栏中的默认标题的大小、字体、阴影偏移和阴影颜色是......你能帮我提供一个解决方案,既不强迫我覆盖 navigationItem.titleView或者帮助我找出使 UILabel 看起来与默认标题完全相同所需的信息。

感谢您的任何帮助。

I'm trying to have a button on the self.navigationItem.rightButton that toggles a segmented control that is placed in self.navgivationItem.titleView .. this will however remove the title that is first set by self.title when the navbar is created .. I dont know if my approach is bad but I figured I could rotate between a UILabel and the Segmented Control in the titleView.

It works as I would like it to, however I cant figure out what size and font and shadowoffset and shadowcolor the default titles in a navigation bar is .. could you help me with a solution that either not force me to override the navigationItem.titleView or help me figure out the information needed to make a UILabel look exactly like the default titles.

Thankful for any help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

や莫失莫忘 2024-09-01 04:39:01

在代码中,大致如下:

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

应该有帮助,除非您要查询的大小、名称等。用户界面标签。

In code, something along the lines of:

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

should help, except you'll be querying the size, name etc. of the UILabel.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文