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
Caleb Kleveter
Treehouse Moderator 37,862 PointsWhat should I do about this warning?
here's my code,
NSObject *thing = @[@22];
for (id nil in thing);
NSLog(@"%@", nil);
Here's what I get when I look at the preview,
expected ')' note: to match this '(' for (id nil in thing); ^ 5 errors generated.
What should I do to fix my code?
When I clicked on the "check work" button I got this warning:
Bummer! That's the wrong type for 'thing'. For right now, we just want to declare 'thing' with the type 'id'. Preview