CCAnimationBtn.h 818 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // CCAnimationBtn.h
  3. // AnimationButton
  4. //
  5. // Created by sischen on 2017/11/25.
  6. // Copyright © 2017年 pcbdoor.com. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @interface CCAnimationBtn : UIButton
  10. /**
  11. 线条数量,默认6
  12. */
  13. @property (nonatomic, assign) NSInteger lineCount;
  14. /**
  15. 线条末端宽度,默认11.5
  16. */
  17. @property (nonatomic, assign) CGFloat lineWidth;
  18. /**
  19. 线条长度相对控件半个尺寸比例,默认0.75
  20. */
  21. @property (nonatomic, assign) CGFloat lineLengthPercent;
  22. /**
  23. 中心图片相对控件尺寸比例,默认0.7
  24. */
  25. @property (nonatomic, assign) CGFloat imgSizePercent;
  26. /**
  27. 动画总时长,默认1.1
  28. */
  29. @property (nonatomic, assign) CFTimeInterval animationTime;
  30. /**
  31. 线条颜色,默认桃红色
  32. */
  33. @property (nonatomic, strong) UIColor *lineColor;
  34. @end