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

What I did wrong?

Set the 'robotImages' to the animation images property of 'imageView' Bummer! Make sure you create an NSArray named 'robotImages' with instances of UIImage objects. My code: UIImage *image = [UIImage imageNamed:@"robot.png"]; UIImageView *imageView = [[UIImageView alloc] initWithImage:image];

/* Write your code below this line / NSArray robotImages = [[NSArray alloc] initWithObjects:[UIImage imageNamed:@"Robot1.png"],[UIImage imageNamed:@"Robot2.png"],[UIImage imageNamed:@"Robot3.png"],[UIImage imageNamed:@"Robot4.png"],nil];

self.imageView.animationImages = robotImages;

1 Answer

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

This older forum post about this issue should help: http://teamtreehouse.com/forum/help-with-task-set-the-robotimages-to-the-animation-images-property-of-imageview

There are other ones as well that you can find by searching for "robotImages" in the new search bar. Hope this helps!