Reputation: 2609
I am working on a custom UIProgressView
. Please see attached image.
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 ?
Upvotes: 1
Views: 890
Reputation: 3260
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!!!
Upvotes: 2