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 Weather App with Swift Managing Complexity Callback Methods With Closures

I can't solve this

I don't understand what this quiz wants for me. Too many "datas" and "tasks". Can somebody give a walkthrough and explain what should we write and more importantly - why?

2 Answers

Hi there,

There are a few posts on this challenge - here is one that shows the solution.

Have a look through the code and refresh your thoughts with the video again - hopefully, it will make sense to you.

Steve.

First, I would suggest reading the first sentence of each paragraph, to get the main idea. Keep an eye out for programing terms you're familiar with, like "closure" and "method".

The first paragraph tells you what you're trying to do in a real life programming scenario, whereas the second one gives you your programming task.

Note that the one-sentence paragraph that begins with Note: doesn't necessarily have to be read, unless you continue to have problems passing the challenge.