I try to set font size class of UITextView in storyboard, but it always shows system font (default font, size and color). It shows the correct font if I don't set font size class.
Here's a screenshot:

Anybody know how to fix this?
It is matter of 'selectable' property of UITextView.
Check the selectable property of UITextView in Storyboard Editor to set it YES.
and later in viewWillAppear set this property to NO.
textview.text = @"some text";
textview.selectable = NO;
Try this code
-(void)viewWillAppear:(BOOL)animated
{
_linkTextView.editable = YES;
_linkTextView.font = [UIFont systemFontOfSize:18.0f];
_linkTextView.editable = NO;
}
Instead of system font you can use your font.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With