BGReportView.m 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. //
  2. // BGReportView.m
  3. // BuguLive
  4. //
  5. // Created by fanwe2014 on 2017/3/20.
  6. // Copyright © 2017年 xfg. All rights reserved.
  7. //
  8. #import "BGReportView.h"
  9. @implementation BGReportView
  10. - (void)awakeFromNib
  11. {
  12. [super awakeFromNib];
  13. // self.backgroundColor = kBlackColor;
  14. // self.alpha = 0.5;
  15. // UIBlurEffect *effect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleDark];
  16. // UIVisualEffectView *effectView = [[UIVisualEffectView alloc] initWithEffect:effect];
  17. // effectView.alpha = 0.25;
  18. // effectView.frame = CGRectMake(0, 0, kScreenW, kScreenH);
  19. // [self addSubview:effectView];
  20. // [self sendSubviewToBack:effectView];
  21. self.backgroundColor = [kBlackColor colorWithAlphaComponent:0.5];
  22. self.backImgView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, kScreenW, kScreenH)];
  23. self.backImgView.image = [UIImage imageNamed:@"fw_report_effect"];
  24. [self addSubview:self.backImgView];
  25. [self sendSubviewToBack:self.backImgView];
  26. self.backView.backgroundColor = kWhiteColor;
  27. self.backView.layer.cornerRadius = 3;
  28. self.lineView.backgroundColor = kAppSpaceColor2;
  29. self.titleLabel.textColor = kAppGrayColor1;
  30. self.commentLabel.textColor = kAppGrayColor1;
  31. [self.comfirmBtn setTitleColor:kAppGrayColor1 forState:UIControlStateNormal];
  32. }
  33. - (IBAction)btnClick:(UIButton *)sender
  34. {
  35. if (_RDeleGate && [_RDeleGate respondsToSelector:@selector(reportComeBack)])
  36. {
  37. [_RDeleGate reportComeBack];
  38. }
  39. }
  40. @end