fileTransferPopView.m 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. //
  2. // fileTransferPopView.m
  3. // 隐私保护
  4. //
  5. // Created by xd h on 2023/12/27.
  6. //
  7. #import "fileTransferPopView.h"
  8. @implementation fileTransferPopView
  9. - (id)initWithFrame:(CGRect)frame{
  10. self = [super initWithFrame:frame];
  11. [self drawAnyView];
  12. return self;
  13. }
  14. - (void)drawAnyView{
  15. [self setBackgroundColor:[UIColor hwColor:@"#000000" alpha:0.6]];
  16. UIView *whiteBgView = [[UIView alloc] init];
  17. whiteBgView.backgroundColor = [UIColor whiteColor];
  18. whiteBgView.layer.cornerRadius = 12;
  19. [self addSubview:whiteBgView];
  20. [whiteBgView mas_makeConstraints:^(MASConstraintMaker *make) {
  21. make.left.mas_equalTo(0);
  22. make.right.mas_equalTo(0);
  23. make.height.mas_equalTo(237+ 10);
  24. make.bottom.mas_equalTo(10);
  25. }];
  26. UIView *blackView = [[UIView alloc] init];
  27. whiteBgView.backgroundColor = [UIColor blackColor];
  28. whiteBgView.layer.cornerRadius = 2;
  29. [self addSubview:whiteBgView];
  30. [whiteBgView mas_makeConstraints:^(MASConstraintMaker *make) {
  31. make.width.mas_equalTo(40);
  32. make.height.mas_equalTo(4);
  33. make.centerX.mas_equalTo(0);
  34. make.top.mas_equalTo(8);
  35. }];
  36. }
  37. @end