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!
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
J V
1,774 PointsImage Based Animation: im having trouble with the challenge
"Assume you have images named 'Robot1.png','Robot2.png','Robot3.png','Robot4.png', create an array of UIImage objects called 'robotImages'. " I would love to get tips on how to get the answer correctly. Thanks
7 Answers

Ryan O'Connor
10,753 PointsNSArray*robotImages = [[NSArray alloc] initWithObjects:[UIImage imageName:@"Robot1.png"],[make another image object],[etc.], nil];

J V
1,774 PointsWow, I have everything there except the bracket box from start and end. Thanks

J V
1,774 PointsI tried it and is still wrong.

J V
1,774 PointsAmit Bijlani when you get a chance please help me with this challenge.
My code:
robotImages = [[NSArray alloc] initWithObjects:[UIImage initWithImage:@"Robot1.png"],[UIImage initWithImage:@"Robot2.png"],[UIImage initWithImage:@"Robot3.png],[UIImage initWithImage:@"Robot4"], nil];

Sebastien Thomas
16,502 PointsNSArray *robotImages = [[NSArray alloc] initWithObjects:[UIImage imageNamed:@"Robot1.png"], [UIImage imageNamed:@"Robot2.png"], [UIImage imageNamed:@"Robot3.png"], [UIImage imageNamed:@"Robot4.png"], nil];

J V
1,774 PointsI did that too and It was wrong.

Sebastien Thomas
16,502 PointsI have just copied and pasted the code from my reply and it works :)