TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Apr 2017 |
Maintained by yanggong.
an iOS RatingBar
AWERatingBar
works on Xcode 7.3 , iOS 8.0+ and requires ARC to build.
You will need the latest developer tools in order to build AWERatingBar
. Old Xcode versions might work, but compatibility will not be explicitly maintained.
AWERatingBar
folder into your project. Make sure to select Copy items when asked if you extracted the code archive outside of your project.#import "AWERatingBar.h"
.-(instancetype)initWithFrame:(CGRect)frame;
-(instancetype)initWithFrame:(CGRect)frame displayRating:(CGFloat)rating;
-(instancetype)initWithFrame:(CGRect)frame numberOfStars:(NSInteger)numberOfStars rateStyle:(RateStyle)rateStyle anination:(BOOL)animation delegate:(id)delegate;
-(instancetype)initWithFrame:(CGRect)frame finish:(finishBlock)finish;
-(instancetype)initWithFrame:(CGRect)frame numberOfStars:(NSInteger)numberOfStars rateStyle:(RateStyle)rateStyle isAnination:(BOOL)isAnimation finish:(finishBlock)finish;
-(void)displayRating:(CGFloat)rating isIndicator:(BOOL)isIndicator;
- (void)setStarImageWithNormalStar: (UIImage *)normalStar selectedStar: (UIImage *)selectedStar;
AWERatingBar
is released under the MIT license. See LICENSE for details.