Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Can't get through this challenge...
Excuse my ignorance if so...but I believe the answer is
NSString *bookTitle = [self.booksArray objectAtIndex:2];
I wrote it in the editor, but apparently I have something wrong..Checking back the code, that's the same line we have in the project, so..I don't know where am i wrong. Can you please help me?
Thomas Nilsen14,957 Points
First of all you don't need 'self' since both variables are created locally. The answer should look something like this:
NSString *bookTitle = booksArray;
The way you wrote it, apart from 'self' is correct, so it depends on the compiler :)
Thank you very much, taking out the 'self' did the trick..
Sorry for the dumb question :S ..just starting on iOS Development :P