How to change the uitextview font size

前端 未结 7 861
轮回少年
轮回少年 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:36

    Use this:

    UITextView *myTextView = [[UITextView alloc] initWithFrame:CGRectMake(0, 0, 320, 480)];  
    myTextView.font = [UIFont fontWithName:@"arial" size:14];
    
    0 讨论(0)
提交回复
热议问题