Custom progress bar in ios

I am trying to make this custom bar where the label and the progress bar adjust according to each other’s width..Is there an open source code for this.

enter image description here

Right now i am simply using a built in progress bar but i don’t know how to adjust the progress bar and the text relative to the progress bar length.

    cell.candidatesPollProgress.backgroundColor = [UIColor blueColor];
    cell.candidatesPollProgress.progressTintColor = [UIColor blueColor];
    cell.candidatesPollProgress.trackTintColor = [UIColor blueColor];

Source: ios

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.