How to change the uitextview font size

前端 未结 7 898
轮回少年
轮回少年 2020-12-13 03:38

can any one help to change the font size in UITextView.

[textView setFont:[UIFont fontWithName:@\"ArialMT\" size:30]];

I use t

7条回答
  •  余生分开走
    2020-12-13 04:16

    Have you bind textView with xib or allocated textView?

    If yes,

    You can use following code to check whether this works

    [textView setFont:[UIFont boldSystemFontOfSize:15]];
    

    or

     [textView setFont:[UIFont systemFontOfSize:15]];
    

提交回复
热议问题