// // HDLFVNoDataView.m // Ezviz // // Created by 陈启扬 on 2022/4/8. // Copyright © 2022 hdl. All rights reserved. // #import "HDLEZNoDataView.h" @interface HDLEZNoDataView() @property (nonatomic, strong)UILabel *tipL;//提示lable @end @implementation HDLEZNoDataView -(instancetype)init{ self = [super init]; if (self) { [self initUI]; } return self; } -(void)initUI{ _tipL=[[UILabel alloc] init]; [self addSubview:_tipL]; [_tipL mas_makeConstraints:^(MASConstraintMaker *make) { make.left.top.right.bottom.equalTo(self); }]; _tipL.textColor=HDLEZ_COLOR_TEXT_INPUT_GRAY; _tipL.font=HDLEZ_Get_FontRegularWithSize(HDLEZ_FontSize_15); _tipL.textAlignment=NSTextAlignmentCenter; _tipL.numberOfLines=2; _tipL.adjustsFontSizeToFitWidth=YES; } -(void)setTipMsg:(NSString *)tipMsg{ _tipMsg=tipMsg; _tipL.text=_tipMsg; } @end