How to change the uitextview font size

前端 未结 7 887
轮回少年
轮回少年 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条回答
  •  猫巷女王i
    2020-12-13 04:29

    I tried it the same way like you with

    [textView setFont:[UIFont fontWithName:kFontName size:kFontSize]];
    

    I set the UITextView inside ViewDidLoad. My problem was, I transformed my view:

    [_viewEnd setTransform:CGAffineTransformMakeScale(0.0, 0.0)];
    

    My problem was solved with setting the properties of the UITextView after transforming my UIView which includes the UITextView.

提交回复
热议问题