Question

I am working on a custom UIProgressView. Please see attached image.

enter image description here

I am very close to it, but I am unable to add the circle at the begining of the pregressbar, like the current progress is 15% so the circle is placed on there.

Any Idea ?

Was it helpful?

Solution

code like below...

[progressView setMaximumTrackImage:[UIImage imageNamed:@"yourimage"] forState:UIControlStateNormal];
[progressView setMinimumTrackImage:[UIImage imageNamed:@"yourimage"] forState:UIControlStateNormal];
[progressView setThumbImage:[UIImage imageNamed:@"yourimage"] forState:UIControlStateNormal];

//intial progress
progressview.progress=0.0;

Increase your progress

progressview.progress=progress here;

let me know it is working or not!!!!

Happy Coding!!!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top