IOS:字符串重读和粗体
我有一系列标签,
[labelsArray objectAtIndex:1] ????
我想将标签文本样式更改为粗体和强调。我怎样才能做到这一点?
I have an array of labels
[labelsArray objectAtIndex:1] ????
I want to change label text style to bold and stressed. How can I do that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不明白你所说的强调是什么意思,但如果你想让它加粗,你可以写:
大小和字体类型当然取决于你。
以下是列表:http://www.prePressure.com/fonts/basics /ios-4-fonts
编辑评论:
我从来没有这样做过,但经过一番搜索后,我在 stackoverflow 上找到了这篇文章。您可以尝试这样做,但据我所知,没有“内置”功能。
UIlabel 中的文本下划线
I do not understand what you mean by stressed but if you want to make it bold you can write:
The size and font type is ofcourse up to you.
Here are the list: http://www.prepressure.com/fonts/basics/ios-4-fonts
EDIT for comment:
I have never done that, but after some searching I found this post at stackoverflow. You may try that, but there is no "built-in" function for this as far I know.
Underline text in UIlabel
如果标签中有不同的字体,您不知道可以尝试以下方法:
希望这会有所帮助!
If there are different fonts in labels, that you don't know you can try this:
Hope this'll help!