Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6827223
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:14:27+00:00 2026-05-26T22:14:27+00:00

I am trying to get my animation move in more than one generated path.

  • 0

I am trying to get my animation move in more than one generated path. I got my codes down but I still don’t get what is wrong with it.

Here is where I place my image in the view

UIImageView *faceAni = [[UIImageView alloc] initWithFrame:CGRectMake(200, 100, 50.0, 50.0)];
        faceAni.animationImages = faces;
        faceAni.animationDuration = 10;
        faceAni.animationRepeatCount = 0;
        [faceAni startAnimating];
        [self addSubview:faceAni];

And here is where I try to get the animation to move in a triangular path coordinates.

[UIView beginAnimations:nil context:NULL];
        [UIView setAnimationDuration:1];


        [UIView animateWithDuration:4 
                              delay:0 
                            options:UIViewAnimationOptionRepeat|UIViewAnimationOptionAutoreverse  
                         animations:^{faceAni.transform = CGAffineTransformMakeTranslation(0, 200);} 
                         completion:^(BOOL finished) {

            [UIView animateWithDuration:4 
                                  delay:0 
                                options:UIViewAnimationOptionRepeat|UIViewAnimationOptionAutoreverse  
                             animations:^{faceAni.transform = CGAffineTransformTranslate(faceAni.transform, -100, 0);} 
                             completion:^(BOOL finished) {

                [UIView animateWithDuration:4 
                                      delay:0 
                                    options:UIViewAnimationOptionRepeat|UIViewAnimationOptionAutoreverse 
                                 animations:^{faceAni.transform = CGAffineTransformTranslate(faceAni.transform, 300, 0);} 
                                 completion:NULL];

            }];

        }];

I still don’t get what is wrong with my codes.

Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T22:14:27+00:00Added an answer on May 26, 2026 at 10:14 pm

    It might help if you describe the behaviour that you’re seeing. As a guess, though, you probably don’t want the UIViewAnimationOptionRepeat|UIViewAnimationOptionAutoreverse flags you’re passing to each animation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

im trying to create ball animation using gdi but i can't get it working.
I'm trying to get a basic flip animation transition working when I push a
Trying to get an ASP application deployed; it worked for a while but then
I'm trying to get an QML animation to Start every time it's clicked, without
I am trying to get a frame by frame animation to run on android
I've been trying to get this working for the last hour, but I can't
I've been trying to get this javascript animation to work for hours now, and
I'm trying to get a UIView to expand (with animation), sort of like an
I guess this problem is really about performance, but I'm trying to get a
I have been trying to get it to work using this thread but can't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.