// // DZ_ScaleCircle.h // DZ_Scale_Circle // // Created by rongxun02 on 15/12/9. // Copyright © 2015年 DongZe. All rights reserved. // #import @interface DZ_ScaleCircle : UIView //线宽. @property(nonatomic)CGFloat lineWith; //基准圆环颜色 @property(nonatomic, strong)UIColor *unfillColor; //中心数据显示标签 @property (nonatomic, strong)UILabel *centerLable; // 四个区域的颜色 @property (nonatomic, strong)UIColor *firstColor; @property (nonatomic, strong)UIColor *secondColor; @property (nonatomic, strong)UIColor *thirdColor; @property (nonatomic, strong)UIColor *fourthColor; // 四个区域所占的百分比 @property (nonatomic, assign)float firstScale; @property (nonatomic, assign)float secondScale; @property (nonatomic, assign)float thirdScale; @property (nonatomic, assign)float fourthScale; //动画时长 @property (nonatomic, assign)float animation_time; - (instancetype) initWithFrame:(CGRect)frame; @end //使用 初始化 //circle = DZ_ScaleCircle(frame: CGRect(x: 54, y: 66, width: 80, height: 80)) //circle.firstColor = CommonUntils.getUIColorFromRGB(rgbValue: 0xfff043, alpha: 1.0) //circle.firstScale = 0.35 //circle.lineWith = 5 //self.circle.unfillColor = CommonUntils.getUIColorFromRGB(rgbValue: 0xff8881, alpha: 1.0) //circle.animation_time = 1.0 // // //circle.centerLable.text = "今日怀孕几率:7%"; //circle.centerLable.textColor = UIColor.white //circle.centerLable.font = UIFont.systemFont(ofSize: 12); //circle.centerLable.numberOfLines = 2