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 trialPeter Chow
3,115 PointsSo how to start the animation?
I put in self.imageView.animationRepeatCount = 1; and it says I have to use the correct method to start the animation. What am I doing wrong?
4 Answers
Stone Preston
42,016 Pointsyou cant call the method using dot syntax, you are going to have to call it using brackets like this:
[objectToCallMethodOn methodName];
where the object to call the method on is your imageView property and the method name is startAnimating
Stone Preston
42,016 Pointsthere is a method you need to call on your imageView that tells it to (hint hint) startAnimating
Peter Chow
3,115 PointsThanks for the help!
I tried to put self.imageView.startAnimating;
I also tried to to put - (void)startAnimating; outside the method,
still doesn't work.
I am sorry but I am an idiot in programming. TT___TT
Peter Chow
3,115 PointsGot it, thank you so much!