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
Bruce Röttgers
18,211 PointsC-Style has been removed in Swift 3
Hey,
I'm trying to use a tutorial (how to connect swift to a database on codewithchris.com). There's a for loop in the tutorial that I need to get running: (Using Xcode 8.2.1)
for(var i = 0; i < jsonResult.count; i++)
But this shows up the error C-Style has been removed in Swift 3 and says that I can correct it like this:
for(i in 0 ..< jsonResult.count)
But this shows up following errors:
Expected ',' separator Expected pattern Expected 'in' after for-each pattern Expected Sequence expression for for-each loop
Thanks for your advice,
Bruce.