简体   繁体   English

iPhone中的自定义UIProgressView

[英]Custom UIProgressView in iphone

I am working on a custom UIProgressView . 我正在自定义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. 我非常接近它,但是我无法在进度条的开头添加圆圈,因为当前进度为15%,因此将圆圈放在此处。

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 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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