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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:47:55+00:00 2026-05-27T18:47:55+00:00

I am starting an animation via a button press. Here is the code for

  • 0

I am starting an animation via a button press. Here is the code for the button:

-(IBAction)startAnimation:(id)sender{
stick.animationImages = [NSArray arrayWithObjects:
                         [UIImage imageNamed:@"photo 1.JPG"],
                         [UIImage imageNamed:@"photo 2.JPG"],
                         [UIImage imageNamed:@"photo 3.JPG"],
                         [UIImage imageNamed:@"photo 4.JPG"],
                         [UIImage imageNamed:@"photo 5.JPG"],nil];
[stick setAnimationRepeatCount:200];
stick.animationDuration = 0.5;
[stick startAnimating];
}

and when the animation is done, i want to have a button appear, to play another animation on the screen. How can i test or see when my animation is done playing? 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-27T18:47:55+00:00Added an answer on May 27, 2026 at 6:47 pm

    You haven’t told us what stick is, but it looks like a UIImageView. You can only call isAnimating to check whether the animation is still running but you don’t get any notification and there’s no delegate either. You can calculate the stop time (200 * 0.5) and thus set up a timer (add a little safety margin). This won’t be 100% correct but it might be “good enough”.

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

Sidebar

Related Questions

can anyone tell me why this animation isn't starting? i've tried putting code in
I am starting to learn to use UIView animation. So I wrote the following
Starting from ASP.NET MVC Preview 3, HTML.Button ( and other related HTML controls) are
OnTouch of an ImageView I'm starting a fade in animation: myImageView.setOnTouchListener(new View.OnTouchListener() { public
I have a basic question about starting a frame-by-frame animation. When I call the
It seems that I get the strange behaviour of a GIF-Animation starting over again,
here's my question, i'm developing a personal website that has a huge animation in
I have the simple code of: [otherClass doMethodOneWhichHasAnimation]; and that animation lasts 0.8 seconds.
I'm starting to code GUIs with Shoes. I tried the progress bar from the
Starting with 2005, VS started this behavior of when starting debugging session it spawns

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.