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
Stu Cowley
26,287 PointsCrystal Ball Image Based Animation Code Challenge
Hey guys,
So I'm really struggling with the code challenge for Image Based Animation.
Here is what I have been declaring to no avail.
// Add your code below!
// Remember 'imageView' is a property
// so refer to it as 'self.imageView'
self.imageView = [[imageView alloc init];
self.backgroundImage.animationImages = [[NSArray alloc] initWithObjects:
[UIImage imageNamed:@"01"],
[UIImage imageNamed:@"02"],
[UIImage imageNamed:@"03"], nil];
}
Any help will be greatly appreciated.
Thanking you in advance
Stu :)
1 Answer
Stone Preston
42,016 PointsLooks like you put imageView instead of UIImageView in your allocation of that property. and also the braces arent correct
[[UIImageView alloc] init];