由 Ray Wenderlich 指南演化而来的简单五星评价视图:http://bit.ly/1fm1rPB
@property (nonatomic, weak) NSObject <BTRatingViewDelegate> *delegate;
BTRatingView 代理对象。
@property (nonatomic, strong) UIImage *emptyStarImage;
空星占位符图片。
@property (nonatomic, strong) UIImage *halfFullStarImage;
半星图片。
@property (nonatomic, strong) UIImage *fullStarImage;
满星图片。
@property (nonatomic, assign) BOOL editable;
如果启用用户交互,则为布尔值。
@property (nonatomic, assign) CGFloat rating;
当前评分值。
@property (nonatomic, assign) NSInteger maxRating;
最大评分星级。默认为 5。
@property (nonatomic, assign) NSInteger midMargin;
星级之间的中边距。
@property (nonatomic, assign) NSInteger leftMargin;
左边距。
@property (nonatomic, assign) CGSize minImageSize;
最小图像大小。
- (void)ratingView:(BTRatingView *)ratingView ratingDidChange:(float)rating;
评分值更改时的代理方法。