萤石云 iOSSDK,移植跨平台相关工程
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
40
41
42
43
//
//  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