Try It Out
So, does it work? Save the project, build it, launch it, and give it a whirl. Try the segmented control. Success! Okay, now try the switch at the bottom. Huzzah! Now try the slider! Wait a minute. The text doesn’t increase in size if you slide past size 17. What’s going on?
CRASH AND LEARN
Do you get a warning that “FontsViewController may not respond to ‘-updateText’”? If so, you can get rid of the warning by moving the -updateText method body above the line of code that first calls it. This is due to the fact the Xcode compiler only makes a single pass through each source file, so helper methods must be defined before they are ...