// // 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