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

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!