BTRatingView 1.0.1

BTRatingView 1.0.1

测试已测试
语言语言 Obj-CObjective C
许可证 zlib
发布日期最新发布2014年12月

Borut Tomazin 维护。




  • 作者
  • Borut Tomažin

由 Ray Wenderlich 指南演化而来的简单五星评价视图:http://bit.ly/1fm1rPB

预览

iPhone portrait

属性

@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;

评分值更改时的代理方法。