MORedRainView.m 639 B

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // MORedRainView.m
  3. // MiMoLive
  4. //
  5. // Created by SuperC on 2024/7/15.
  6. //
  7. #import "MORedRainView.h"
  8. @interface MORedRainView ()
  9. @property (weak, nonatomic) IBOutlet UILabel *timeLab;
  10. @end
  11. @implementation MORedRainView
  12. + (instancetype)moRedRainView{
  13. return [[[NSBundle mainBundle] loadNibNamed:@"MORedRainView" owner:self options:nil] firstObject];
  14. }
  15. - (void)awakeFromNib{
  16. [super awakeFromNib];
  17. self.timeLab.layer.cornerRadius = 8.0 / 2.0;
  18. self.timeLab.layer.masksToBounds = YES;
  19. }
  20. - (IBAction)showRedRainBlock:(id)sender {
  21. self.showRedRainActivityView ? self.showRedRainActivityView() : nil;
  22. }
  23. @end