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 Build a Blog Reader iPhone App Data Modeling Using a Custom Class

Jorge Guzman
PLUS
Jorge Guzman
Courses Plus Student 21,390 Points

Just canΒ΄t cope with the Quiz

I have tried like 4 times, and review the video but my answers continue being wrong. Can anybody tell me what is wrong with my answers?.

QUESTION: Create an instance of the Song class with the designated initializer initWithSinger:(NSString *)s and singer named "James Brown". ANSWER: Song *popSong = [[Song alloc] initWithSinger: @"James Brown"];

QUESTION: Create an instance of the Song class with the convenience constructor songWithSinger:(NSString *)s and singer named "James Brown". ANSWER: Song *popSong = [Song songWithSinger: @"James Brown"];

Thanks in advance,

Jorge

5 Answers

I don't see a problem with your answer. Are you adding ";" to the answer? because they've already added it for you, maybe that's it?

Jorge Guzman
PLUS
Jorge Guzman
Courses Plus Student 21,390 Points

Hi Derek,

Thanks for your reply.

I have tried both options, with and without the semicolon, but neither option is working.

Are you using the whole line? Just fill in the missing code, sometimes that messes with me too if i'm not paying attention (like the code challenges better myself). I tried the question and got through it, "[Song songWithSinger: @"James Brown"]" and "[[Song alloc] initWithSinger: @"James Brown"]" is the only part they are looking for since the rest is already filled in for you. Anyways I hope everything works out, sometimes it's just something clearly right in front of you that you overlook.

Jorge Guzman
PLUS
Jorge Guzman
Courses Plus Student 21,390 Points

Yes I know what you said and I have tried just with the missing part, but maybe I'm doing something wrong. I wrote to tech support maybe it is the website or something.

Cheers

Sorry about that. The Code Challenge servers were having some trouble, but they've been fixed as of 10am EST.