iphone - 设置标签字体
如何将按钮标签的字体设置为 46 号的 Century Gothic Bold。 我正在使用以下代码:
[self.titleLabel setFont:[UIFont fontWithName:@"Century Gothic-Bold" size:46]];
我的代码正确吗?
How can I set the font of button label to Century Gothic Bold of size 46.
I'm using following code:
[self.titleLabel setFont:[UIFont fontWithName:@"Century Gothic-Bold" size:46]];
Is my code correct or not?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我认为 iOS 不支持你的字体。但有一种字体叫AppleGothic。
请参阅此链接
http://www.prePressure.com/fonts/basics/ios- 4种字体
I think iOS doesnt support your font. But there is a font called AppleGothic.
see this link
http://www.prepressure.com/fonts/basics/ios-4-fonts
我昨天用过这个:
所以试试这个:
I used yesterday this:
So try this: