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

So 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
Stone Preston
42,016 Points

you 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
Stone Preston
42,016 Points

there is a method you need to call on your imageView that tells it to (hint hint) startAnimating

Thanks 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

Got it, thank you so much!