CDPStarEvaluation.h 946 B

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // CDPStarEvaluation.h
  3. // CDPStarEvaluation
  4. //
  5. // Created by MAC on 15/4/20.
  6. // Copyright (c) 2015年 com.xuezi.CDP. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <UIKit/UIKit.h>
  10. @protocol CDPStarEvaluationDelegate <NSObject>
  11. -(void)theCurrentCommentText:(NSString *)commentText Tag:(NSInteger)tag;//获得实时评价级别
  12. @end
  13. @interface CDPStarEvaluation : NSObject
  14. @property (nonatomic,assign) NSInteger delegateTag;
  15. @property (nonatomic,strong) UIImageView *starImageView;//满五星imageView
  16. @property (nonatomic,strong) UIImageView *starEmptyImageView;//空五星imageView
  17. @property (nonatomic,strong) NSString *commentText;//评价级别
  18. @property (nonatomic,assign) float width;//实时记录评价详细分数
  19. @property (nonatomic,assign) id <CDPStarEvaluationDelegate> delegate;
  20. -(id)initWithFrame:(CGRect)frame onTheView:(UIView *)view;//初始化
  21. -(void)setStarWithFloat:(CGFloat)wid;
  22. @end