Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


Background not animating

I'm having trouble animation my background. I believe followed the steps from the video accurately but when i run the program, it doesn't animate. I have successfully animated the text and added sound.

self.backgroundImageView.animationImages = [[NSArray alloc] initWithObjects:

                                        [UIImage imageNamed:@"CB0001"],[UIImage imageNamed:@"CB0002"], [UIImage imageNamed:@"CB0003"], [UIImage imageNamed:@"CB0004"], [UIImage imageNamed:@"CB0005"], [UIImage imageNamed:@"CB0006"], [UIImage imageNamed:@"CB0007"], [UIImage imageNamed:@"CB0008"], [UIImage imageNamed:@"CB0009"], [UIImage imageNamed:@"CB00010"], [UIImage imageNamed:@"CB00011"], [UIImage imageNamed:@"CB00012"], [UIImage imageNamed:@"CB00013"], [UIImage imageNamed:@"CB00014"], [UIImage imageNamed:@"CB00015"], [UIImage imageNamed:@"CB00016"], [UIImage imageNamed:@"CB00017"], [UIImage imageNamed:@"CB00018"], [UIImage imageNamed:@"CB00019"], [UIImage imageNamed:@"CB00020"], [UIImage imageNamed:@"CB00021"], [UIImage imageNamed:@"CB00022"], [UIImage imageNamed:@"CB00023"], [UIImage imageNamed:@"CB00024"], [UIImage imageNamed:@"CB00025"], [UIImage imageNamed:@"CB00026"], [UIImage imageNamed:@"CB00027"], [UIImage imageNamed:@"CB00028"], [UIImage imageNamed:@"CB00029"], [UIImage imageNamed:@"CB00030"], [UIImage imageNamed:@"CB00031"], [UIImage imageNamed:@"CB00032"], [UIImage imageNamed:@"CB00033"], [UIImage imageNamed:@"CB00034"], [UIImage imageNamed:@"CB00035"], [UIImage imageNamed:@"CB00036"], [UIImage imageNamed:@"CB00037"], [UIImage imageNamed:@"CB00038"], [UIImage imageNamed:@"CB00039"], [UIImage imageNamed:@"CB00040"], [UIImage imageNamed:@"CB00041"], [UIImage imageNamed:@"CB00042"], [UIImage imageNamed:@"CB00043"], [UIImage imageNamed:@"CB00044"], [UIImage imageNamed:@"CB00045"], [UIImage imageNamed:@"CB00046"], [UIImage imageNamed:@"CB00047"], [UIImage imageNamed:@"CB00048"], [UIImage imageNamed:@"CB00049"],  [UIImage imageNamed:@"CB00050"],   [UIImage imageNamed:@"CB00051"],   [UIImage imageNamed:@"CB00052"],   [UIImage imageNamed:@"CB00053"],   [UIImage imageNamed:@"CB00054"],   [UIImage imageNamed:@"CB00055"],   [UIImage imageNamed:@"CB00056"],   [UIImage imageNamed:@"CB00057"],   [UIImage imageNamed:@"CB00058"],   [UIImage imageNamed:@"CB00059"],   [UIImage imageNamed:@"CB00060"],nil];

self.backgroundImageView.animationDuration = 2.5f;
self.backgroundImageView.animationRepeatCount = 1;

pragma mark - Prediction

-(void) makePrediction{ [self.backgroundImageView startAnimating]; self.predictionLabel.text = [self.crystalBall randomPrediction]; AudioServicesPlaySystemSound(soundEffect);

[UIView animateWithDuration:6.0 animations:^{
    self.predictionLabel.alpha = 1.0f;


Has anyone found a solution, I'm struggling

1 Answer

Has anyone found a solution. I need to finish this