0

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];
Davis
  • 1,253
  • 4
  • 17
  • 38

2 Answers2

1

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).

sweepy_
  • 1,333
  • 1
  • 9
  • 28
  • HCSStarRatingView is what i´m looking for, can´t believe i did not found this after 1h of searching... thank you very much! – Davis Apr 23 '15 at 09:55
1

How about…

A UIView, with 5 UIImageView subviews, each imageView has a regular and highlighted image:

- initWithImage:highlightedImage:

then set the highlighted property of each imageView depending on the rating.

Rather than just pulling in some 3rd party code, use it as an opportunity to learn!

Ashley Mills
  • 50,474
  • 16
  • 129
  • 160