ali ali - 7 months ago 54
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];


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.