RateView
is a UIView
subclass that creates a customizable rating view containing rating stars in it. It fills out the stars in percentage fill
manner. It can be used for -
canRate = NO
OR canRate = YES
.pod 'RateView'
Configuring RateView is as simple as :
RateView* rv = [RateView rateViewWithRating:3.7f];
[self.view addSubview:rv];
RateView takes it over from here.
rating
. rating
between 0.0
to 5.0
.RateView comes with a property set for it's customization as needed :-
rating
: Rating to be used with RateView (0.0f to 5.0f)
canRate
: User can rate using rate view or not (Permission flag)
step
: Rating step when user can rate (0.0f to 1.0f)
starNormalColor
: Rating Star's backgroundColor
starFillColor
: Rating Star's fillColor
starBorderColor
: Rating Star's borderColor
starFillMode
: Star Fill modes Horizontal, Vertical or Axial
starSize
: starSize (width == height == size) in points
padding
: horizontal space width between every two neighbour stars
delegate
: register in order to listen to rating changes
Given that UIColor is capable of color patterns handling made from images,
RateView can be used to take advantage of this feature.
![Screenshot1] (https://raw.githubusercontent.com/taruntyagi697/RateView/master/Screenshots/Screenshot1.png) ![Screenshot2] (https://raw.githubusercontent.com/taruntyagi697/RateView/master/Screenshots/Screenshot2.png)
Demo app includes almost all of the property usages through a pretty basic UITableView example.
You can go through it to see these in action at first.