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 ForecastService

i have a problem with let jsonDictionary = NSJSONSerialization.JSONObjectWithData code , can some one help pleas :\

good morning every one i have a problem with this code : let jsonDictionary = NSJSONSerialization.JSONObjectWithData(data, options: [String: AnyObject]) it shows me an error i don't know why ! :( ''' http://store1.up-00.com/2016-02/145479108857281.png ''' http://store2.up-00.com/2016-02/145479140614121.png ''' here is the details , first ask me to Modify the code and when i did what it ask it shows an error :\

Austin Andrews
Austin Andrews
6,880 Points

Give this a try!

Notice the issue you have with the options, it should be an empty array '[]' instead of the [String: AnyObject]