Search code examples
iosobjective-cuiprogressbar

How to create Rating Dots


I want to achieve something like this:

enter image description here

There should be always 5 dots in total, but the black colored Dots can be variable. Is there any Github Project or something like that? I tried it with Subclasses of the UIProgressbar but that not reallys worked well!

cell.ratingDot.numberOfPages = 5;
cell.ratingDot.alignment = GTControlAlignmentLeft;
cell.ratingDot.pageIndicatorTintColor = [UIColor whiteColor];
//Its not possible as you can see to set more than one dot to the  ratingDot value
cell.ratingDot.currentPageIndicatorTintColor = [UIColor blackColor];

Solution

  • A quick search on GitHub with rating ios as query gives me this :

    Tips: when browsing GitHub, type one or two words max. describing what you need, followed by the official StackOverflow tag (eg. ios,java, etc).