문제

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 ?

도움이 되었습니까?

해결책

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!!!

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top