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

Ryan sTEADMAN
Ryan sTEADMAN
1,600 Points

hELP

PLEASE CAN SOME ONE HELP. My animation is not running at all. It just stays on the first image.

I am totally stumped, I am sure i have followed everything to the tee.

Please can someone help me??????

1 Answer

Sam Chaudry
Sam Chaudry
25,519 Points

Assuming you've added the images and set it as it an NSArray object I would check your animation property and make sure you've added a value like 2.0f i.e. the number of frames per second and also check your animation repeat property to.

If thats a no go then look at your animation method (in the .m file) it should be like:

-(void)makePrediction{

[self.backgroundImages startAnimating];

}

The startAnimating method when run will get your images actually animating.