Anybody know how to make progress indicator of doing something like on a screenshot?

- 1,616
- 6
- 30
- 59
2 Answers
There are mainly two way to do this:
Create and save many images with the progress indicator in various positions. Then use
UIImageView
to display it, changing the image accordingly to the current progress. This is a easy solution, however it requires you to create (manually) the various images. Besides it's not continuos (even if it can be smooth enough, according to the number of images you save). However, it can give a good effect (according to your needs).Draw the indicator at runtime. In your case it should not be so hard since your progress indicator is very simple. Take a look at CGContext, it will provide all the method to draw a circle, draw lines and fill a path with a color. This will give a better result than the previous solution, however it requires the indicator to be redrawn every time.

- 10,768
- 9
- 50
- 79
Check out TKAProgressCircleView. Does exactly what you need, I use it myself in couple of apps.

- 20,973
- 34
- 136
- 253