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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T19:21:05+00:00 2026-05-12T19:21:05+00:00

I have a few UIButtons that I’d like to trigger short 5-10 frame animations

  • 0

I have a few UIButtons that I’d like to trigger short 5-10 frame animations when pressed in the middle of the screen along with other nonrelated stuffs. Can I just drop one UIImageView in IB and update it, somehow, programmatically? It doesn’t need to be overly complex, I don’t even mind if it’s hard coded, for now since it’s such a small project.

Thanks.

  • 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-12T19:21:05+00:00Added an answer on May 12, 2026 at 7:21 pm

    Here’s an example of the easiest way you do an animation with just a few frames is:

    Declare an IBOutlet UIImageView *timerAnimation and link it to your UIIMageView in IB. Add some number of images to your resources, such as you see needed below. Then load the images into an array – see the code:

    timerAnimation.animationImages = [NSArray arrayWithObjects:
          [UIImage imageNamed:@"timer00.png"],
          [UIImage imageNamed:@"timer01.png"],
          [UIImage imageNamed:@"timer02.png"],
          [UIImage imageNamed:@"timer03.png"],
          [UIImage imageNamed:@"timer04.png"],
          [UIImage imageNamed:@"timer05.png"],
          [UIImage imageNamed:@"timer06.png"],
          [UIImage imageNamed:@"timer07.png"],
          [UIImage imageNamed:@"timer08.png"],
          [UIImage imageNamed:@"timer09.png"],
          [UIImage imageNamed:@"timer10.png"],
          [UIImage imageNamed:@"timer11.png"],
          [UIImage imageNamed:@"timer12.png"],
          [UIImage imageNamed:@"timer13.png"],
          [UIImage imageNamed:@"timer14.png"],
          [UIImage imageNamed:@"timer15.png"],
          [UIImage imageNamed:@"timer16.png"],
          [UIImage imageNamed:@"timer17.png"],
          [UIImage imageNamed:@"timer18.png"],
          [UIImage imageNamed:@"timer19.png"],
          [UIImage imageNamed:@"timer20.png"],
          [UIImage imageNamed:@"timer21.png"],
          [UIImage imageNamed:@"timer22.png"],
          [UIImage imageNamed:@"timer23.png"],
          [UIImage imageNamed:@"timer24.png"],
          [UIImage imageNamed:@"timer25.png"],
          [UIImage imageNamed:@"timer26.png"],
          [UIImage imageNamed:@"timer27.png"],
          [UIImage imageNamed:@"timer28.png"],
          [UIImage imageNamed:@"timer29.png"],
          [UIImage imageNamed:@"timer30.png"],
          [UIImage imageNamed:@"timer31.png"],
          [UIImage imageNamed:@"timer32.png"],
          [UIImage imageNamed:@"timer33.png"],
          [UIImage imageNamed:@"timer34.png"],
          [UIImage imageNamed:@"timer35.png"],
      //      [UIImage imageNamed:@"timer36.png"], save last picture for "times up"
          nil];
    timerAnimation.animationDuration = 5.0;
    timerAnimation.animationRepeatCount = 1;
    [timerAnimation startAnimating];
    

    This will run your animation until you call [timerAnimation stopAnimating];

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

Sidebar

Related Questions

I have few tables like Country,state city which has static data. User do not
i have few websites on servers around the world that run a certein function
I have few questions on this Subjects. I created a class for buttons, the
I have few websites based on the WebForms and one based on MVC. All
I have few sites, and they all have identical setup on a single server.
I have few doubts regarding how windows manages a .dll's memory. when .dll's are
I am doing an application on a Multiple Choice Question (MCQ) where I have
I've been researching for the past few days and can't figure this out. I
Apologies if there answer is already out there, but I could not find it.
I am having trouble with my game and was wondering if anyone can help?

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.