简体   繁体   中英

Custom UIProgressView in iphone

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 ?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM