UIView+CornerRadius.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // UIView+CornerRadius.h
  3. // ZBCornerDemo
  4. //
  5. // Created by Zuobian on 2019/12/24.
  6. // Copyright © 2019 admin. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface UIView (CornerRadius)
  11. /// 绘制裁剪圆角,可选任意角进行切割
  12. /// @param radius 圆角半径
  13. /// @param fillColor 填充色
  14. /// @param type 裁剪角
  15. - (void)drawCircularBeadImageWithRadius:(float)radius fillColor:(UIColor *)fillColor CornerStyle:(UIRectCorner)type;
  16. /// 绘制裁剪圆角,可选任意角进行切割,且每个角可选切割任意半径
  17. /// @param radius_TL 左上角半径
  18. /// @param radius_TR 右上角半径
  19. /// @param radius_BL 左下角半径
  20. /// @param radius_BR 右下角半径
  21. /// @param fillColor 填充色
  22. - (void)drawCircularBeadImageWithRadius_TL:(float)radius_TL
  23. radius_TR:(float)radius_TR
  24. radius_BL:(float)radius_BL
  25. radius_BR:(float)radius_BR
  26. fillColor:(UIColor *)fillColor;
  27. @end
  28. NS_ASSUME_NONNULL_END