zjf
2023-03-06 392b76515f40376b6d36f40a114850ef63650384
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//
//  PBPromptView.m
//  IphoneBIMe
//
//  Created by zjf on 2018/8/7.
//  Copyright © 2018年 ProBIM. All rights reserved.
//
 
#import "PBPromptView.h"
 
@interface PBPromptView()
@end
@implementation PBPromptView
 
- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        [self setupUI];
    }
    return self;
}
- (void)setupUI {
    self.backgroundColor = [UIColor whiteColor];
    self.imageV = [[UIImageView alloc] init];
    [self.imageV sizeToFit];
    [self addSubview:self.imageV];
    [self.imageV mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self).offset(199);
        make.centerX.equalTo(self);
    }];
    self.textL = [UILabel z_labelWithText:@"" Color:[UIColor z_colorWithR:153 G:153 B:153] isBold:NO Font:TitleFontSize];
    self.textL.textAlignment = NSTextAlignmentCenter;
    [self addSubview:self.textL];
    [self.textL mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.imageV.mas_bottom).offset(40);
        make.left.equalTo(self).offset(20);
        make.right.equalTo(self).offset(-20);
    }];
}
@end