Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Alex Suarez
868 PointsEXTRA extra Credit for Refactoring into a Model
Ok so I have done all the extra credit so far, and one of the tasks involves changing the color of the Text label once the button is pressed. I wanted to create a new class and put this code into it (as it was done with the predictions array), but I am experiencing a problem since UIColor is not an instance recognized in my new class...
Any ideas on how to do this?
agreatdaytocode
24,757 Pointsagreatdaytocode
24,757 PointsAlex,
You are on the right track. You need to create a 2nd ColorWheel
After that you can add the following line of code.
funFactLabel.textColor = colorsTextArrayHope this helps.