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

Can't Get Past NSArray Property 2nd part code challenge

https://www.dropbox.com/s/1wwkzpxjye3mt14/Photo%20Jul%2008%2C%202%2018%2051%20PM.jpg

https://www.dropbox.com/s/b2ix2at7y9k6vzz/Photo%20Jul%2008%2C%202%2018%2027%20PM.jpg

I can't get past part two of the NSArray property code challenge even though I checked every single forum post with my problem. It doesn't work even on my Mac so the iPad app isn't the problem. I formatted for whitespace but that didn't work. Maybe I'm missing something?

The picture in the second link is sideways.

Thanks.

2 Answers

Hi, I can't detect any syntax errors, but in my experience the strings needs to exactly match those in the exercise. I see that in your last string object you omitted "quit".

your code: self.quotes = [[NSArray alloc] initWithObjects: @"Haters gonna hate", @"Life is simple, not easy", @"Winners never, quitters never win"];

correct code: self.quotes = [[NSArray alloc] initWithObjects: @"Haters gonna hate", @"Life is simple, not easy", @"Winners never quit, quitters never win"];

I believe this should pass the exercise.

It's ok. I fixed the problem and submitted the code challenge on my mac. Thank you for your quick response.