如何更改uitextview字体大小 [英] How to change the uitextview font size
本文介绍了如何更改uitextview字体大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
任何人都可以帮助改变 UITextView
中的字体大小。
can any one help to change the font size in UITextView
.
[textView setFont:[UIFont fontWithName:@"ArialMT" size:30]];
我使用这个但不起作用。
I use this one but it doesn't work.
推荐答案
您是否将textView与xib绑定或分配了textView?
Have you bind textView with xib or allocated textView?
如果是,
您可以使用以下代码检查是否有效
You can use following code to check whether this works
[textView setFont:[UIFont boldSystemFontOfSize:15]];
或
[textView setFont:[UIFont systemFontOfSize:15]];
这篇关于如何更改uitextview字体大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文