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 (iOS7) Creating a Data Collection Implementing an Array

Unused variable warning

Hey, this is what I've coded so far in my "magic ball" app. http://imgur.com/zjJKO9B

As you can see, there is a warning in there. The app still functions, but I'm wondering what what warning is trying to get me to do.

Thanks for any help! Louis

1 Answer

Hi Louis, XCode is letting you know that you defined an array called predictions but you never used it.