Quote:
Originally Posted by spiderguy84
Doesn't seem to work to do anything. Class method '+fontWithSize' not found.
I'm just looking to increase the default font in increments of one when a button is pressed.
|
He was giving you the general idea, not the exact code. He indicated that he was typing from memory.
Open the Xcode docs and type in UIFont. That should bring up the UIFont class reference. Look in the "Class methods" section for a method who's name starts with "fontWith". There's only one. It also takes the name of the font. so it will be a method that takes a font name and a size. Use that method.
You will learn a lot more if you figure out which method to use yourself, and figure out how to call it yourself. Take a stab at it. If you struggle with it for a couple of hours and still can't figure it out, come back and tell us what you tried and we can help you fix it.