Skip to content

评分视图控件,支持 xib,支持自动布局。星级评分,支持 cocoapods。

License

Notifications You must be signed in to change notification settings

HimmaHorde/YL_RatingView

Repository files navigation

YL_RatingView Build Status

  • 星级评分,支持 xib,支持自动布局。
  • 可点击评分和拖动评分。
  • 可设置评分精度,一颗星、半颗星或者精确到小数

Requirements

YLRatingView works on iOS 7+ and requires ARC to build. It depends on the following Apple frameworks, which should already be included with most Xcode templates:

Foundation.framework UIKit.framework

Adding YLRatingView to your project

  • Installation with CocoaPods:pod 'YLRatingView', '~> 1.0'
  • Import the main file:#import "YLStarRating.h"

Usage

Init
    YLStarRating * halfRatingview = [[YLStarRating alloc] initWithFrame:frame numberOfStar:6];
    
    halfRatingview.delegate = self;
    
    halfRatingview.displayStatus = YLStarDisplayStatusHalf;
    
    [self.view addSubview:halfRatingview];

About

评分视图控件,支持 xib,支持自动布局。星级评分,支持 cocoapods。

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published