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 trialWilliam Crawford
4,319 PointsStill uses old Swift term
Pasan, With Ramon & Jake's fix, I got thru the JSON video fine. But, the Challenge Task 1 of 1 is still looking for "NSData.dataWithContentsOfURL" instead of "NSData(contentsOfURL". I will skip the Challenge for now and go on to the next video. Thanks Here was my code: import Foundation let treehouseBaseURL = NSURL(string: "https://api.teamtreehouse.com/") let courseURL = NSURL(string: "/course/(courseID)", relativeToURL: treehouseBaseURL) let courseData = NSData(contentsOfURL: courseURL!, options: nil, error: nil)
1 Answer
William Crawford
4,319 PointsFlorian, I got a reply from Pasan that they were working on it, and hoped to fix it soon. Then, this past weekend, I went back to it, entered my code, and it got accepted this time. So, they must have fixed it
Florian Briou
2,190 PointsThank you for your answer. It worked today so that's fine.
Florian Briou
2,190 PointsFlorian Briou
2,190 PointsHello William,
Did you manage to get an answer ? Because I have the same problem.
I will be grateful if you can send me this information if you have it.