Skip to main content

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

Join the Treehouse affiliate program and earn 25% recurring commission! 🤑

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
      • • Vibe Coding
  • Bastian Petersson
    Bastian Petersson
    9,164 Points

    why @escaping closure?

    Posted June 20, 2018 10:56am by Bastian Petersson
    Bastian Petersson
    9,164 Points
    • iOS
    • Build a Weather App
    • Downloading JSON Data Asynchronously
    • Returning JSON

    1 Answer

  • Stephen Wall
    PLUS
    Stephen Wall
    Courses Plus Student 27,294 Points

    toggleRefreshAnimation on main thread?

    Posted June 19, 2018 5:04pm by Stephen Wall
    Stephen Wall
    Courses Plus Student 27,294 Points
    • iOS
    • Build a Weather App
    • Dark Sky API Client
    • Refreshing the Weather

    0 Answers

  • Stephen Wall
    PLUS
    Stephen Wall
    Courses Plus Student 27,294 Points

    Why did you place the DispatchQueue.main.async in the DarkSkyAPIClient class?

    Posted June 19, 2018 4:44pm by Stephen Wall
    Stephen Wall
    Courses Plus Student 27,294 Points
    • iOS
    • Build a Weather App
    • Dark Sky API Client
    • Updating the UI From a Background Thread

    1 Answer

  • Nenad Mitrovic
    Nenad Mitrovic
    8,133 Points

    Can we avoid DispatchQueue method?

    Posted May 5, 2018 3:41pm by Nenad Mitrovic
    Nenad Mitrovic
    8,133 Points
    • iOS
    • Build a Weather App
    • Dark Sky API Client
    • Updating the UI From a Background Thread

    1 Answer

  • Nenad Mitrovic
    Nenad Mitrovic
    8,133 Points

    DarkSkyError as a new file?

    Posted May 2, 2018 10:03am by Nenad Mitrovic
    Nenad Mitrovic
    8,133 Points
    • iOS
    • Build a Weather App
    • Downloading JSON Data Asynchronously
    • Inspecting the Network Response

    2 Answers

  • Jacob Brickell
    Jacob Brickell
    8,083 Points

    Is There Still Manual Propagation of Errors in Swift 4 / Has error handling been updated since Swift 3?

    Posted April 30, 2018 9:12pm by Jacob Brickell
    Jacob Brickell
    8,083 Points
    • iOS
    • Build a Weather App
    • Downloading JSON Data Asynchronously
    • Manual Propagation of Errors

    1 Answer

  • Andrei Li
    Andrei Li
    34,486 Points

    model and view Model - where they are coming from? I haven't found any reference in the project files.Are they built in?

    Posted March 5, 2018 2:26pm by Andrei Li
    Andrei Li
    34,486 Points
    • iOS
    • Build a Weather App
    • Modeling Forecast Data
    • View Models

    1 Answer

  • Ann Volkova
    Ann Volkova
    4,925 Points

    How can catch errors in this case?

    Posted February 4, 2018 11:48am by Ann Volkova
    Ann Volkova
    4,925 Points
    • iOS
    • Build a Weather App
    • Dark Sky API Client
    • The End

    0 Answers

  • Emin Grbo
    Emin Grbo
    13,092 Points

    Image completion - Text next to the images in code

    Posted January 30, 2018 12:21pm by Emin Grbo
    Emin Grbo
    13,092 Points
    • iOS
    • Build a Weather App
    • Modeling Forecast Data
    • An Icon Enum

    1 Answer

  • Danil Chaikin
    Danil Chaikin
    4,994 Points

    URL (string:) and (string:relativeTo:) initialisers don't show up

    Posted January 16, 2018 2:59pm by Danil Chaikin
    Danil Chaikin
    4,994 Points
    • iOS
    • Build a Weather App
    • Fetching Data From the Web
    • Constructing a URL

    1 Answer

  • Addison Francisco
    Addison Francisco
    9,561 Points

    Missing REST Course Link

    Posted December 26, 2017 10:55pm by Addison Francisco
    Addison Francisco
    9,561 Points
    • iOS
    • Build a Weather App
    • Fetching Data From the Web
    • How Do We Get Data From the Web?

    2 Answers

  • Peter Correa
    Peter Correa
    17,155 Points

    What causes the lazy property 'baseURL' to return an optional URL?

    Posted December 5, 2017 3:34pm by Peter Correa
    Peter Correa
    17,155 Points
    • iOS
    • Build a Weather App
    • Dark Sky API Client
    • Interacting With the API

    1 Answer

  • Krishna Leela
    PLUS
    Krishna Leela
    Courses Plus Student 220 Points

    What is the use of convenience init in json downloader ? Is it really needed ?

    Posted October 24, 2017 6:26pm by Krishna Leela
    Krishna Leela
    Courses Plus Student 220 Points
    • iOS
    • Build a Weather App
    • Downloading JSON Data Asynchronously
    • Separating Object Responsibilities

    0 Answers

  • anna saraswati
    PLUS
    anna saraswati
    Courses Plus Student 30 Points

    what's the difference between URL and URLrequest

    Posted September 21, 2017 12:40am by anna saraswati
    anna saraswati
    Courses Plus Student 30 Points
    • iOS
    • Build a Weather App
    • Fetching Data From the Web
    • Constructing a URL

    0 Answers

  • Ben Moore
    Ben Moore
    22,588 Points

    Data Type for Casting JSON Object

    Posted September 10, 2017 3:00pm by Ben Moore
    Ben Moore
    22,588 Points
    • iOS
    • Build a Weather App
    • Downloading JSON Data Asynchronously
    • Returning JSON

    0 Answers

  • Mads Thorsen
    Mads Thorsen
    3,464 Points

    Getting a .jsonParsingFailure

    Posted August 26, 2017 1:41pm by Mads Thorsen
    Mads Thorsen
    3,464 Points
    • iOS
    • Build a Weather App
    • Dark Sky API Client
    • Cleaning Up The View Controller

    0 Answers

  • Jack Blankenship
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Jack Blankenship
    Full Stack JavaScript Techdegree Graduate 39,036 Points

    Network request is causing soft crash.

    Posted August 4, 2017 5:49pm by Jack Blankenship
    .a{fill-rule:evenodd;}techdegree seal-36
    Jack Blankenship
    Full Stack JavaScript Techdegree Graduate 39,036 Points
    • iOS
    • Build a Weather App
    • Fetching Data From the Web
    • Making a Simple Network Request

    2 Answers

  • irem gürel
    irem gürel
    5,732 Points

    In iOS we can deal with concurrency through TASKS?

    Posted July 22, 2017 11:05am by irem gürel
    irem gürel
    5,732 Points
    • iOS
    • Build a Weather App
    • Dark Sky API Client
    • Recap: Dark Sky API Client

    2 Answers

  • irem gürel
    irem gürel
    5,732 Points

    I do exactly the same but compiler says

    Posted July 21, 2017 7:56pm by irem gürel
    irem gürel
    5,732 Points
    • iOS
    • Build a Weather App
    • Downloading JSON Data Asynchronously
    • Returning JSON

    0 Answers

  • Douglas Aldridge
    Douglas Aldridge
    5,634 Points

    Weather App - Wrong location

    Posted July 12, 2017 12:58am by Douglas Aldridge
    Douglas Aldridge
    5,634 Points
    • iOS
    • Build a Weather App
    • Dark Sky API Client
    • The End

    1 Answer

  • Detective Dark
    PLUS
    Detective Dark
    Courses Plus Student 591 Points

    why I don't see the icon,

    Posted July 11, 2017 1:02pm by Detective Dark
    Detective Dark
    Courses Plus Student 591 Points
    • iOS
    • Build a Weather App
    • Modeling Forecast Data
    • An Icon Enum

    1 Answer

  • Claire Worrmald
    Claire Worrmald
    6,442 Points

    No Teacher Notes in regards to ViewModel Debate

    Posted June 29, 2017 2:16pm by Claire Worrmald
    Claire Worrmald
    6,442 Points
    • iOS
    • Build a Weather App
    • Modeling Forecast Data
    • View Models

    0 Answers

  • Ingo Ngoyama
    Ingo Ngoyama
    4,882 Points

    I am getting nil Optional(Stormy.DarkSkyError.invalidUrl)

    Posted June 22, 2017 8:31pm by Ingo Ngoyama
    Ingo Ngoyama
    4,882 Points
    • iOS
    • Build a Weather App
    • Dark Sky API Client
    • Refreshing the Weather

    1 Answer

  • Aditya Pandey
    Aditya Pandey
    7,210 Points

    Getting the wrong url

    Posted June 16, 2017 2:12pm by Aditya Pandey
    Aditya Pandey
    7,210 Points
    • iOS
    • Build a Weather App
    • Dark Sky API Client
    • Cleaning Up The View Controller

    3 Answers

  • Ingo Ngoyama
    Ingo Ngoyama
    4,882 Points

    I am not getting a print out of anything in the output window or I just get (11db.) in my output and no

    Posted June 6, 2017 10:25pm by Ingo Ngoyama
    Ingo Ngoyama
    4,882 Points
    • iOS
    • Build a Weather App
    • Fetching Data From the Web
    • Writing Concurrent Networking Code

    2 Answers

  • Will Matthews
    Will Matthews
    8,127 Points

    Why define the CurrentWeather extension in the CurrentWeather file?

    Posted April 13, 2017 9:23am by Will Matthews
    Will Matthews
    8,127 Points
    • iOS
    • Build a Weather App
    • Dark Sky API Client
    • From JSON to CurrentWeather

    3 Answers

  • Perez Willie-Nwobu
    Perez Willie-Nwobu
    36 Points

    Starting a new project

    Posted April 6, 2017 5:54pm by Perez Willie-Nwobu
    Perez Willie-Nwobu
    36 Points
    • iOS
    • Build a Weather App
    • Modeling Forecast Data
    • Dark Sky Data Points

    1 Answer

  • Matthew Kiernand
    Matthew Kiernand
    363 Points

    Prerequisites?

    Posted March 15, 2017 11:25pm by Matthew Kiernand
    Matthew Kiernand
    363 Points
    • iOS
    • Build a Weather App
    • Modeling Forecast Data
    • Introduction

    0 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

  • About
  • Blog
  • Community
  • Stories
  • Contact
  • Gift Card

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord