//
// YUAN.h
// 画圆
//
// Created by vsKing on 16/9/9.
// Copyright © 2016年 vsKing. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface YUAN : UIView
@property (nonatomic, strong) UIColor *ballColor;
@property (nonatomic, strong) UIColor *cicleOneColor; // 小圆颜色
@property (nonatomic, strong) UIColor *cicleTwoColor; // 大圆颜色
@property(nonatomic,assign)double precentFrequency; // 调用percentLabel的频率
@property(nonatomic,assign)double radius;
// 加载动画
-(void)showHub;
// 关闭动画
-(void)dismissHub;
-(void)initCircleOneColor:(UIColor*)cicleOneColor cicleTwoColor:(UIColor*)cicleTwoColor precentFrequency:(double)precentFrequency radius:(double)radius;
@end
//
// YUAN.m
// 画圆
//
// Created by vsKing on 16/9/9.
// Copyright © 2016年 vsKing. All rights reserved.
//
#import "YUAN.h"
#define ORIGIN_X self.frame.origin.x
#define ORIGIN_Y self.frame.origin.y
#define WIDTH self.frame.size.width
#define HEIGHT self.frame.size.height
#define BALL_RADIUS [NSNumber getTransNumberCompareWidth:40]