导航栏中标题的默认字体大小、字体名称和阴影是什么?
我试图在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在代码中,大致如下:
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.