Thromordyn Thromordyn - 1 year ago 87
Objective-C Question

'+systemFontSize:' not found

Method '+systemFontSize:' not found (return type defaults to 'id')

'UIFont' may not respond to '+systemFontSize:'

Searching Google for the exact phrase doesn't get any results, relevant or not. The nearest I've found was someone else having a different problem with
label.font = [UIFont systemFontSize:12.0];
as the solution. That's what I'm trying to do now, but Xcode is yelling at me about it.

If it matters, I'm using this book: Professional iPhone and iPad Database Application Programming

I'd be surprised if it does, but there you go.

Answer Source

I think you're looking for systemFontOfSize:, not systemFontSize:. So, you'd set it this way:

label.font = [UIFont systemFontOfSize:12.0];
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download