Skip to content

m-irfan/BSRatingView

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

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

About

This library is to show rating as stars.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Objective-C 100.0%