How to change the uitextview font size

mychar picture mychar · Jun 29, 2011 · Viewed 64.9k times · Source

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.

Answer

iMOBDEV picture iMOBDEV · Jun 29, 2011

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]];