ali ali - 18 days ago 7
Objective-C Question

UITextView Font not changing

I am using arial font in UITextView but i want to change to Myriad but its not changing

textView.font=[UIFont fontWithName:@"Myriad" size:20];

Answer

Try using:

[textView setFont:[UIFont ...]]

and also check that the font you're passing in is not nil. That might be the problem -> you're font is non-existant.