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

  • Home
  • SEARCH
  • 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 9268259
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T14:45:52+00:00 2026-06-18T14:45:52+00:00

I want to have a blinking image (swaps between two images) in table cells.

  • 0

I want to have a blinking image (swaps between two images) in table cells.

What seemed most natural to me is as follows:

  • Set a NSTimer to goes every .5 seconds, calling -blink:
  • In -blink: I toggle a blinkStatus variable on/off
  • In -cellForRowAtIndexPath:, I set the image depending upon the blinkStatus

Now, I also call [myTableView reloadData] in the -blink: method, so thinks get updated.

This seems to make sense; the state of the cells is actually changing (the image is being changed), so having the table update makes sense.

This works. However, the reloadData seems to interfere with the user interaction:

In table editing mode if the user selects (-) to delete, and the Delete button appears, it will disappear when reloadData occurs. It’s easy enough only do the reloadData if [myTableView.editing] is false. (And it’s not a big problem to not have blinking during editing mode.)

However, the reloadData still seems to mess things up (e.g. clear cell selection). I also worry about the efficiency of calling reloadData every .5 seconds.

Is there a smoother way to get that image blinking? I was thinking of saving a pointer to any blinking cells, and update the .image property in the timer. But this seems like a bad idea, since cells are reused for different rows of the table (ouch), and I doubt that simply updating the .image property would update the table without a reloadData.

  • 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-18T14:45:54+00:00Added an answer on June 18, 2026 at 2:45 pm

    Did you try to use [UIImageView animationImages] property?
    Just provide your images, set required duration and animationRepeatCount and call startAnimating

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

Sidebar

Related Questions

i want have an image and i want to set it as a background
I want to have the <h2> underlined and blinking at the same time. Is
I have a UITextView and I want have two buttons. When the user taps
I want to have two button in the same size one in the left
I have a UILabel with background color as grey. I want a blinking effect
I have some buttons one is main, others are child, I want blinking effect
I try to read out all existing calendars. I want have a HashMap with
want to have a Hyperlink-Button in a gridView in which I can display a
I have want to save a form in Symfony2, based on a form type,
I want to have a window with the border radius of the content border

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.