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 8964991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:42:51+00:00 2026-06-15T16:42:51+00:00

Let’s say I have two animations that work individually, but I want them to

  • 0

Let’s say I have two animations that work individually, but I want them to work together simultaneously.

    public static void SlideAnimation( string name, UIView view, float xOffset, float yOffset, float duration )
    {           
        if ( view != null )
        {
            // ****** Begin Animation ****** //
            UIView.BeginAnimations(name + " SlideAnimation");
            UIView.SetAnimationDuration(duration);
            UIView.SetAnimationDelegate (view);
            CGAffineTransform move = CGAffineTransform.MakeTranslation(xOffset, yOffset);
            CGAffineTransform transforms = move;
            view.Transform = transforms;
            UIView.CommitAnimations();  
            // ****** End Animation ****** //
        }
    }       

And

    public static void GrowAnimation( string name, UIView view, float xScale, float yScale, float duration )
    {           
        if ( view != null )
        {
            // ****** Begin Animation ****** //
            UIView.BeginAnimations(name + " GrowAnimation");
            UIView.SetAnimationDuration(duration);
            UIView.SetAnimationDelegate (view);
            CGAffineTransform scale = CGAffineTransform.MakeScale(xScale, yScale);
            CGAffineTransform transforms = scale;
            view.Transform = transforms;
            UIView.CommitAnimations();  
            // ****** End Animation ****** //
        }
    }       

The two functions above are of animations that both use CGAffineTransform Let’s say I want to execute them on the same view at the same exact time. I want the result to be the view Sliding AND Growing simultaneously.

1.) My first attempt was calling one animation, and then immediately calling the next. But that failed. Basically, it began animating the first animation, but once it moved onto the next animation, it stopped the first one. The result was only animating the second animation and completely skipping the first one… Almost as if it can only do 1 animation at a time.

2.) My second attempt was calling each animation within it’s own unique thread… This achieved the goal of making them animate simultaneously, but do I really need multithreading to do this? There must be a better way…

PS: Does the CGAffineTransform have some sort of group animation just like the CAKeyFrameAnimation has the CAAnimationGroup?

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-06-15T16:42:52+00:00Added an answer on June 15, 2026 at 4:42 pm

    Just create one transformation and add the second:

    CGAffineTransform composite = CGAffineTransform.MakeTranslation(xOffset, yOffset);
    composite.Scale(xScale, yScale)
    view.Transform = composite;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say I don't have photoshop, but I want to make pattern files (.pat)
Let's say I have two text files that I need to extract data out
Let's say that I have classes like this: public class Parent { public int
Let me explain best with an example. Say you have node class that can
Let's say that I have a SQLite database that I create in a separate
Let's say I have thousands of users and I want to make the passwords
Let say I want to create an iOS app that download music files from
Let's say we have two pages in Orchard CMS. The homepage and the About
Let's say I have some text as follows: do this, do that, then this,
Let's say I have the following entity: public class Store { public List<Product> Products

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.