Latest 1.3.0
Homepage https://github.com/liaojinxing/StarRatingView
License MIT
Platforms ios 6.0, requires ARC
Authors

Star rating view, often used in vote. Easy to use, and flexible configurations.

StarRating1

StarRating2

Installation

  • Grab the source file into your project.
  • Or use cocoapods. Here is an example of your podfile:
pod 'StarRatingView'

Usage

StarRatingView *ratingView = [[StarRatingView alloc] initWithFrame:CGRectMake(0, 100, self.view.frame.size.width, 20) configuration:configuration];
ratingView.rating = 4.0f;    // rate range:[0,5]

Configure the view if you need it:

StarRatingViewConfiguration *conf = [[StarRatingViewConfiguration alloc] init];
conf.rateEnabled = YES;
conf.starWidth = 40.0f;
conf.fullImage = @"ic_starwhite.png";
conf.halfImage = @"ic_starwhitehalf.png";
conf.emptyImage = @"ic_starwhiteept";

License

StarRatingView is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "StarRatingView",
    "version": "1.3.0",
    "summary": "Star rating view, often used in vote. Easy to use, and flexible configurations",
    "homepage": "https://github.com/liaojinxing/StarRatingView",
    "authors": {
        "liaojinxing": "[email protected]"
    },
    "platforms": {
        "ios": "6.0"
    },
    "license": "MIT",
    "source": {
        "git": "https://github.com/liaojinxing/StarRatingView.git",
        "tag": "1.3.0"
    },
    "source_files": "StarRatingView/Source/View/**/*.{h,m}",
    "requires_arc": true,
    "screenshots": [
        "https://raw.githubusercontent.com/liaojinxing/StarRatingView/master/ScreenShot/rating1.png",
        "https://raw.githubusercontent.com/liaojinxing/StarRatingView/master/ScreenShot/rating2.png"
    ]
}

Pin It on Pinterest

Share This