1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- //
- // RatingBar.h
- // MyRatingBar
- //
- // Created by Leaf on 14-8-28.
- // Copyright (c) 2014年 Leaf. All rights reserved.
- //
- // 版权属于原作者
- // http://code4app.com (cn) http://code4app.net (en)
- // 发布代码于最专业的源码分享网站: Code4App.com
- #import <UIKit/UIKit.h>
- @interface RatingBar : UIView
- {
- MyBlockType starNumBlock;
- }
- /**
- *设置星星数量
- */
- @property (nonatomic,assign) NSInteger starNumber;
- /**
- *调整底部视图的颜色
- */
- @property (nonatomic,strong) UIColor *viewColor;
- /**
- *是否允许可触摸
- */
- @property (nonatomic,assign) BOOL enable;
- /**
- 初始化
- @param frame
- @param flag 标志位,if flag = 1,star左边对齐(无空格)
- @return
- */
- - (id)initWithFrame:(CGRect)frame Flag:(BOOL)flag;
- - (void)changeStarNumberBlock:(MyBlockType)starBlock;
- @end
|