ali ali - 1 year ago 97
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 Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download