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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![hunche](https://secure.gravatar.com/avatar/1e49400bde72278198fb2bd914637efd?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
hunche
3,339 PointsChallenge task 2 of 3 Switch to the implementation file and implement a 'quotes' method which will allocate and initial
import "Quote.h"
@implementation Quote
-
(NSString *) randomQuote { if(_quotes ==nil) { _quotes= [[NSArry alloc]initWithObjects:@"a",@"b",@"c",nil]; }
return _quotes; }
I recheck again and again ,and I don't know why it's not right
1 Answer
![Marcus Davajon](https://uploads.teamtreehouse.com/production/profile-photos/913272/micro_Photo_on_11-19-14_at_12.05_PM__original_.jpg)
Marcus Davajon
6,882 Points-
(NSArray *) randomQuote{
if (_quotes == nil) {
_quotes = @[@"a", @"b", @"c"];
}
return _quotes;
}
I passed with this. Now I noticed that your NSArray was misspelled as "NSArry".... It won't allow you to pass if any keys are missing or words misspelled. I've spend a lot time for the same reasons! It's just part of it :)