I have a navigation-based application running on the 3.0 simulator on the SDK. Long story short, the program works, but I want to change the font settings on the UITextView that I have in my DetailViewController.
In the header file, I declare an IBOutlet UITextView *textSpace;
It is defined as a property, and synthesized in the .m file.
In IB, it is linked to the UITextView.
I know that the link is good, because I can control the textSpace's alpha settings from the DetailViewController.m file.
Anyways, the text in the UITextView is loaded from a text file, read into a string, and loaded into the field. The editable selection has been deselected, so it only displays the text.
When I try the code:
textSpace.font = [UIFont fontWithName:@"Arial"];
the program builds, but I get a warning
"warning: 'UIFont' may not respont to '+fontWithName:'
(Messages without a matching method signature will be assumed to return 'id' and acept '...' as arguments.)"
Additionaly, the program will now crash when it tries to load the DetailView.
Does anybody have suggestions for changing the format of the text? Ideally, I would like to get it to display with the 'Georgia' font.
I don't think there's a +fontWithName: method. There's a +fontWithName: size: method though. That means you need to provide both parameters instead of just one.
I don't think there's a +fontWithName: method. There's a +fontWithName: size: method though. That means you need to provide both parameters instead of just one.