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


How do I see the array results?

Sorry if this is obvious but I can't seem to get the array to come up in the playground.

2 Answers

If Xcode can't figure it out it will grey out any old results and not show any new ones. So the first thing to do is check the last bit of code you added. Usually you should get an error, but sometimes it will just stop if really confused. You can also try clicking the Run button at the bottom of the playground to force a refresh. It's the blue right-pointing arrow. You can also open the debug/console area by clicking the small arrow in a box to the left of the debug/console arrow. If there are any errors they will be listed here.

If none of these suggestions work I suggest you put your code up so we can see what's going on -- that way we could copy it into a playground of our own to check it out if need be.

Thanks for your help, jcorum. I managed to get the array to show after watching the next video, but I don't remember how..!! It's all a bit of opening doors and seeing what's inside and moving on to the next for me. Sometimes things work out but I try so many possibilities that I can't recall how.