Reputation: 1581
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.
Upvotes: 2
Views: 969
Reputation: 29524
I think you're looking for systemFontOfSize:
, not systemFontSize:
. So, you'd set it this way:
label.font = [UIFont systemFontOfSize:12.0];
Upvotes: 5
Reputation: 94794
See the documentation for UIFont. You're probably looking for systemFontOfSize:
, note the "Of".
Upvotes: 1