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 Simple iPhone App (iOS7) Animating and Intercepting Events Image Based Animation

Need help with...Stage 6; Animating and Intercepting Events; Task 1 of 3

Instructions Say: Let's add animation to the Random Quotes app. A property named 'imageView' has been already defined. Assuming you have images named '01.png','02.png','03.png', create an array of UIImage objects and assign them to the 'animationImages' property of 'imageView'...PLEASE clarify is animationImages really a property of imageView or a class...from the tutorial video I would think it is a class...my code of course is not working and I am confused...

1 Answer

Cristiano Di Marco
Cristiano Di Marco
5,345 Points

Hi, try the following code:

self.imageView.animationImages = [[NSArray alloc] initWithObjects: [UIImage imageNamed:@"01.png"], [UIImage imageNamed:@"02.png"], [UIImage imageNamed:@"03.png"] ,nil];