1

I have a "loading" cell prototype with only an activity indicator. First time they're used all five of them spin. Then they get replaced with other cells, and when they reappear later the activity indicator doesn't spin.

The indicator has the "animating" property set in storyboard.

Image

I dequeue the cells in cell for row at index path and if they still don't exist I create a new one from its cell id.

Lack of code due to asking from my phone. But if the answer seems obvious then shoot.

2
  • 1
    You need to prepare your dequeued cells for reuse properly. This could mean starting the activity indicator's animation again (or adding it back as a subview if you removed it). It's hard to say without seeing the code you're using to create/reuse the cells. Commented Jan 8, 2015 at 20:14
  • Thanks for your reply. I assumed they'd have the animated property set when instantiated/dequeued with an identifier. Also that the "animated"-property would remain set. I'm not touching the indicator in any way. This assumption seems wrong, but why is it wrong? Commented Jan 8, 2015 at 20:20

1 Answer 1

1

I have the same problem. Fixed it by calling [self.activityIndicator startAnimating] on the cell after I have dequeued it each time.

It looks like an Apple bug - in theory if the animating property is set on the storyboard, it should stay animating even after being dequeued.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.