Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 846 Bytes

README.md

File metadata and controls

20 lines (17 loc) · 846 Bytes

BSRatingView

This library is to show rating as stars.

How To Use:

Drop BSRating.h & BSRating.m in your project and import it

#import "BSRating.h"

BSRating *rating=[[BSRating alloc] initWithFrame:CGRectMake(20, 50, 110, 20) withStarCount:5 filledCount:3 ratingType:BSRatingTypeOutlined withColor:[UIColor blueColor]];
[self.view addSubview:rating];
    
BSRating *rating2=[[BSRating alloc] initWithFrame:CGRectMake(20, 120, 100, 20) withStarCount:10 filledCount:7 ratingType:BSRatingTypeGrayed withColor:[UIColor redColor]];
[self.view addSubview:rating2];

Customisation

You can change the color of your choice by using this line before adding it as subview.

[rating setRatingColor:[UIColor magentaColor]];

alt tag