Search code examples
iphoneiosuiprogressviewuiprogressbar

Custom UIProgressView in iphone


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 ?


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