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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T17:39:54+00:00 2026-06-10T17:39:54+00:00

I have grouped 4 CABasicAnimation into CAAnimationGroup . But the problem is that -(void)

  • 0

I have grouped 4 CABasicAnimation into CAAnimationGroup. But the problem is that

-(void) animationDidStop:(CAAnimation *)anim finished:(BOOL)flag

is not called for each animation.

CABasicAnimation *anim1;//code of anim1
anim1.deleagte=self;
CABasicAnimation *anim2://code of anim2
anim2.deleagte=self;
CABasicAnimation *anim3;//code of anim3
anim3.deleagte=self;
CABasicAnimation *anim4://code of anim4
anim4.deleagte=self;

CAAnimationGroup *animGrp;//code of animGrp
animGrp.delegate=self;
[imageView.layer addAnimation:animGrp forKey:@""];

Am I doing something wrong or there is different approach to it.

My aim is to change the position of the UIIImageView for every animation.

So, when anim1 ends I want to change Image, but I don’t receive a animationDidStop delegate.

  • 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-10T17:39:56+00:00Added an answer on June 10, 2026 at 5:39 pm

    The documentation states

    `CAAnimationGroup` allows multiple animations to be grouped and run concurrently
    

    and

    Note: The delegate and removedOnCompletion properties of animations in the animations property are currently ignored.
    

    You can use the beginTime of an animation to start one animation in the group after another one has finished by simply setting the beginTime to the duration of the other animation. Time Warp in Animation provides a nice explanation of the properties that are inherited from the CAMediaTiming protocol. However, in your case it might be more convenient to add one animation to the layer and register it using the delegate and add another one to the layer after the first one has finished.

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

Sidebar

Related Questions

I have a grouped category field. The problem is that I've created a search
I have Grouped Table View in which I want to display Contact details. But
I have a series of grouped values that follow a specific format and would
I have a grouped UITableView that has 3 sections. I would like to show
I have a grouped UITableView that contains several cells (just standard UITableViewCell s), all
I have a grouped column that is a string . The column keeps repeating.
I have a grouped tableview that is populated with XML data in one section.
I have a grouped UITableView. I am overriding the table row height, but I
Basically I have a grouped by report that has too many groups, so the
Quick one. I'm overlooking something... I have a grouped table view that is built

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.