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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:51:19+00:00 2026-05-31T17:51:19+00:00

I want an UITableViewCell (-background) to shortly light up in red and return to

  • 0

I want an UITableViewCell (-background) to shortly light up in red and return to the old appearance again. This is done during the life of an NSTimer which is giving the constant impulse to invoke the animation.

Right now I am using UIView’s animateWithDuration:delay:options:animations:completion: method to first change the cells background color to red and then in the completion part to turn it gray again (the cell’s background is gray). But this solution doesn’t work smoothly for some reason.

QUESTION: Thinking of core animation, how would I best do this kind of animation for (a) an UITableVeiwCell and (b) an UIButton ?

Thanks for any help!

  • 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-31T17:51:20+00:00Added an answer on May 31, 2026 at 5:51 pm

    I was using an NSTimer to trigger the animation over and over again. Somehow it was giving the above described side effects. Now I am using the block animation available since iOS4 which is working much smoother. You have to combine the (UIViewAnimationOptionRepeat | UIViewAnimationOptionAutoreverse) options to repeat the Animation:

    [UIView animateWithDuration:kDurationOfCellAnimation delay:0 options:UIViewAnimationOptionRepeat | UIViewAnimationOptionAutoreverse
                     animations:^{
                         //this will be animated in and out
                         cell.backgroundColor = CELL_RECORDING_COLOR;
    
                     }
                     completion:^(BOOL finished){
    
                         cell.backgroundColor = TABLEVIEW_BACKGROUND_COLOR;
    
                     }];
    

    The only side effect I experienced was that the animation stops when the cell goes off screen, which wasn’t the case with the NSTimer.

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

Sidebar

Related Questions

I have subclassed a UITableViewCell and within this class I want to get it's
I want to draw the background of a UITableViewCell which has a grouped style.
I want to toggle UITableViewCell image - cell.imageView.image. (eg. Red <--> Green) If the
I would want to create a custom UITableViewCell which should have a different appearance
I want to make a UITableViewCell bigger. How can I do this, I have
I want to add a button in a UITableViewCell . This is my code:
I have an UITextField inside an UITableViewCell. I want the textField to return but
I want to use -drawRect: in an UITableViewCell subclass but it is covered by
I want to place UItextField in UITableViewCell but I have problem. Text field don't
Setup: I have a UITextView inside a UITableViewCell 's contentView . I want it

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.