Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

iOS Build a Simple iPhone App with Objective-C Improving Our User Interface Adding a Pop of Color

Method definition for 'Randomcolor' not found

I made sure that I copied all the lines correctly, but every time i try to run Xcode I get an error in the ColorWheel implementation page stating "Method definition for 'Randomcolor' not found" on the '@implementation ColorWheel' line.

Not sure what to do here.

Matthew Harvey
Matthew Harvey
3,128 Points

3 months and no answer...yikes. If you're still stuck or for anyone who has this problem in the future, I had this same problem, and after some searching online I figured out the infuriatingly simple solution: One "}" curly bracket is missing between the end of the array line of code, after "nil];" and before "return self;" on the next line of code in the ColorWheel.m file. Hope this fixes your problem!