RQExerciseExamAlertHudView.m 695 B

123456789101112131415161718192021222324252627282930
  1. //
  2. // RQExerciseExamAlertHudView.m
  3. // jiaPei
  4. //
  5. // Created by 张嵘 on 2022/7/21.
  6. // Copyright © 2022 JCZ. All rights reserved.
  7. //
  8. #import "RQExerciseExamAlertHudView.h"
  9. @interface RQExerciseExamAlertHudView ()
  10. @property (weak, nonatomic) IBOutlet UIView *coverView;
  11. @end
  12. @implementation RQExerciseExamAlertHudView
  13. + (instancetype)exerciseExamAlertHudView {
  14. return [self rq_viewFromXib];
  15. }
  16. - (void)awakeFromNib {
  17. [super awakeFromNib];
  18. CGFloat width = (RQ_SCREEN_WIDTH - 80.f) * (132.f / 290.f);
  19. _myProgressView.size = CGSizeMake(width, width);
  20. _myProgressView.shape = QMUIPieProgressViewShapeRing;
  21. _coverView.layer.cornerRadius = (width - 6.f) / 2.f;
  22. }
  23. @end