-1

I have a custom circular progress bar in UITableViewCell.

[progressView setAnimationDuration:10.0];
[progressView setProgress: 1.0 animated: YES];

To stop the progress at certain point I am using below code:

[progressView setProgress: 0.5 animated: YES];

Now I want to resume the progress from 0.5 to 1.0. How can I achieve this?

Arasuvel
  • 2,971
  • 1
  • 25
  • 40

2 Answers2

1

Based on M13ProgressViewBar.m:216 (link) you should be able to do that just by calling

[progressView setProgress:1.0 animated:YES];

again, as it should be resuming progress from the current state (0.5 in your case).

Peter Tutervai
  • 793
  • 12
  • 21
1

You might wanna implement the prepareforreuse method in your custom UITableViewcell implementation, which is described here

save your progress while this cell got resused, then when that particular cell reappears in the table resume your animation in progress.

Ratul Sharker
  • 7,484
  • 4
  • 35
  • 44