12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- //
- // fileTransferPopView.m
- // 隐私保护
- //
- // Created by xd h on 2023/12/27.
- //
- #import "fileTransferPopView.h"
- @implementation fileTransferPopView
- - (id)initWithFrame:(CGRect)frame{
- self = [super initWithFrame:frame];
-
- [self drawAnyView];
-
- return self;
- }
- - (void)drawAnyView{
- [self setBackgroundColor:[UIColor hwColor:@"#000000" alpha:0.6]];
-
- UIView *whiteBgView = [[UIView alloc] init];
- whiteBgView.backgroundColor = [UIColor whiteColor];
- whiteBgView.layer.cornerRadius = 12;
- [self addSubview:whiteBgView];
-
- [whiteBgView mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.mas_equalTo(0);
- make.right.mas_equalTo(0);
- make.height.mas_equalTo(237+ 10);
- make.bottom.mas_equalTo(10);
- }];
-
- UIView *blackView = [[UIView alloc] init];
- whiteBgView.backgroundColor = [UIColor blackColor];
- whiteBgView.layer.cornerRadius = 2;
- [self addSubview:whiteBgView];
-
- [whiteBgView mas_makeConstraints:^(MASConstraintMaker *make) {
- make.width.mas_equalTo(40);
- make.height.mas_equalTo(4);
- make.centerX.mas_equalTo(0);
- make.top.mas_equalTo(8);
- }];
- }
- @end
|